curl --request GET \
--url https://api.circle.com/v1/cpn/payments/{paymentId}/transactions/{transactionId} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"paymentId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"status": "PENDING",
"expireDate": "2023-01-01T12:04:05Z",
"senderAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
"senderAccountType": "EOA",
"blockchain": "ETH-SEPOLIA",
"amount": {
"amount": "110.270000",
"currency": "USDC"
},
"destinationAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
"messageType": "EIP3009",
"messageToBeSigned": {},
"failureReason": "FAILED_ONCHAIN",
"estimatedFee": {
"type": "EIP1559",
"payload": {
"gasLimit": "21000",
"maxFeePerGas": "5935224468",
"maxPriorityFeePerGas": "1022783914"
}
},
"signedTransaction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr...",
"transactionHash": "2vmEDSBThR143WJyJePkpKVQcERVo9KePuCUwYU8fkoJaQjarTMj6sZG7DNnJ4zjhtRz6hDruqEFEkD4wJpGviiW"
}
}Retrieves a specific transaction by its ID for a given payment
curl --request GET \
--url https://api.circle.com/v1/cpn/payments/{paymentId}/transactions/{transactionId} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"paymentId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"status": "PENDING",
"expireDate": "2023-01-01T12:04:05Z",
"senderAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
"senderAccountType": "EOA",
"blockchain": "ETH-SEPOLIA",
"amount": {
"amount": "110.270000",
"currency": "USDC"
},
"destinationAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
"messageType": "EIP3009",
"messageToBeSigned": {},
"failureReason": "FAILED_ONCHAIN",
"estimatedFee": {
"type": "EIP1559",
"payload": {
"gasLimit": "21000",
"maxFeePerGas": "5935224468",
"maxPriorityFeePerGas": "1022783914"
}
},
"signedTransaction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr...",
"transactionHash": "2vmEDSBThR143WJyJePkpKVQcERVo9KePuCUwYU8fkoJaQjarTMj6sZG7DNnJ4zjhtRz6hDruqEFEkD4wJpGviiW"
}
}Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.
The payment id created previously. System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
The transaction id created previously. System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
Transaction retrieved successfully.
Response schema for a blockchain transaction containing details about the transaction amount, addresses, fees, and status
Show child attributes
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
Lifecycle status of a transaction
CREATED, PENDING, BROADCASTED, COMPLETED, FAILED "PENDING"
Date and time when the resource expires
"2023-01-01T12:04:05Z"
A blockchain address that can be used to send or receive transactions on a blockchain network.
"0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c"
The type of blockchain account (currently supports only EOA - Externally Owned Account).
EOA "EOA"
Supported blockchain networks
SOL, MATIC, ETH, SOL-DEVNET, MATIC-AMOY, ETH-SEPOLIA "ETH-SEPOLIA"
Represents an amount of cryptocurrency, including both the numerical amount and the specific cryptocurrency type.
{
"amount": "110.270000",
"currency": "USDC"
}A blockchain address that can be used to send or receive transactions on a blockchain network.
"0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c"
Transaction message type
EIP3009, SOLANA "EIP3009"
The message to be signed by OFI on Circle supported EVM chains and Solana (A EVM EOA message or a SOL message).
Possible reasons for transaction failure
CPN_PAYMENT_EXPIRED, SIGNED_TRANSACTION_EXPIRED, NONCE_TOO_LOW, NONCE_TOO_HIGH, INSUFFICIENT_TOKEN_BALANCE, INSUFFICIENT_GAS_BALANCE, GAS_PRICE_TOO_LOW, OUT_OF_GAS, TX_REPLACEMENT_FAILED, SOL_TX_ALREADY_IN_CACHE, TX_ALREADY_CONFIRMED, FAILED_ONCHAIN, SOL_BLOCKHASH_EXPIRED, TRANSACTION_EXPIRED, BROADCAST_FAILED, RELAY_FAILED, UNKNOWN_REASON "FAILED_ONCHAIN"
The suggested fee is provided to guide the OFI in constructing and signing the transaction object for submission.
Show child attributes
EIP1559 Payload containing EIP-1559 fee configuration parameters for Ethereum transactions
Show child attributes
Maximum amount of gas units that can be used for the transaction
"21000"
Maximum total fee per gas (base fee + priority fee) in wei
"5935224468"
Maximum priority fee per gas (tip to miners) in wei
"1022783914"
Signed transaction. Base64 encoded for NEAR and Solana chains. Hex encoded for EVM chains.
"AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr..."
Unique identifier assigned to a blockchain transaction when it is broadcast to the network
"2vmEDSBThR143WJyJePkpKVQcERVo9KePuCUwYU8fkoJaQjarTMj6sZG7DNnJ4zjhtRz6hDruqEFEkD4wJpGviiW"
Was this page helpful?