How to get the transaction hash when sending money using Coinbase API?


I am curious how you get the transction hash of an on-chain transaction when sending money using Transactions?

I tried doing some test transactions using Solana, but I can’t find the transaction hash/signature anywhere in the response data.

Bonus question:

Is it possible to use the notifications API for getting a notification about a pending transaction that has completed? From this page, Transactions, it does not appear like it. Just notifications on things like buys, sells, withdrawals and deposits.

Thanks in advance!

1 Like

Hello @chrillex1! Thank you for taking an interest in trying out Coinbase APIs. For the details regarding your concern, we will check on this for you with our team. We will get back to you once we have more information. Keep in touch!

1 Like

Hi @chrillex1! Welcome to the forum!

You should be able to retrieve a transaction hash of an on-chain transaction when using the Transactions endpoints. The transaction hash will be shown in the response inside the Network parameter if the transaction has been sent On-Chain. Also, please note that this will only be available on the API for certain types of transactions, as it’s mentioned in our documentation.

Below is an example of the specific code snippet with the response, including the hash:

 "network": {
                "status": "confirmed",
                "status_description": null,
                "hash": "b3750b6b16cf703e9141dc780dc404001317f022dc7c0b84106460b0ca4d1f33",
                "transaction_url": "",
                "transaction_fee": {
                    "amount": "0.00000892",
                    "currency": "BTC"

If the transaction is sent off-chain, you’ll see the following on the response for the Network parameter:

"network": {
                "status": "off_blockchain",
                "status_description": null

Regarding your question about Webhooks, currently the notifications will only be triggered if one of the actions mentioned here are completed, so only for withdrawals, deposits, buys, sells or if you receive a new on-chain payment on one of your crypto addresses. To keep track of transaction status, we would recommend utilizing the Transaction API endpoints.

Thank you and welcome to the community!

1 Like