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.
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!
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!
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:
If the transaction is sent off-chain, you’ll see the following on the response for the Network parameter:
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!