Details
The custom content type for payment messages is:coinbase.com/coinbase-messaging-payment-activity:1.0
Payment messages can be one of two types:
- Regular Payments
- Coinbase Sponsored Payments
Regular Payments
A regular payment message contains details of standard cryptocurrency transactions.Sample Structure
Attributes
Name | Description |
---|---|
currencyCode | Specifies the cryptocurrency being transacted. |
fromAddress | The sender’s cryptocurrency wallet address. |
network | Details of the network on which the transaction is being conducted. |
toAddress | The recipient’s cryptocurrency wallet address. |
transactionHash | A unique identifier for the transaction. |
The
transactionHash
can be used to fetch additional details and verify that the transaction has succeeded.Coinbase Sponsored Payments
Coinbase sponsored payments differ slightly from regular payments in their structure. They contain a sponsored transaction ID instead of a direct transaction hash.Sample Structure
Attributes
Name | Description |
---|---|
fromAddress | The sender’s cryptocurrency wallet address. |
network | Details of the network on which the transaction is being conducted. |
sponsoredTxId | A unique identifier for the sponsored transaction. |
toAddress | The recipient’s cryptocurrency wallet address. |
Fetching Transaction Hash from SponsoredTxId
To obtain the actualtransactionHash
using the sponsoredTxId
, make a GET request to the provided endpoint:
sponsoredTxId
. This endpoint will return the transactionId
, which is equivalent to the transaction hash, allowing you to verify the transaction on the relevant blockchain.