curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/transactions/{transaction_id}{
"transaction": {
"id": "BTC-USD",
"wallet_id": "cde8dd34-b6cf-4c2c-82bc-5f86adacc868",
"portfolio_id": "0a66a8c0-24ea-4f18-b14f-8c9cf7c1ba40",
"symbol": "BTC",
"created_at": "2021-05-31T11:59:59.000Z",
"completed_at": "2021-05-31T12:09:31.000Z",
"amount": "100",
"transfer_from": {
"value": "0bf7bf1e-bafa-4d7e-9312-fa0bf3b63f27",
"address": 6.6325114945411165e+47,
"account_identifier": "387879289"
},
"transfer_to": {
"value": "0bf7bf1e-bafa-4d7e-9312-fa0bf3b63f27",
"address": 6.6325114945411165e+47,
"account_identifier": "387879289"
},
"network_fees": "1.99",
"fees": "4.53",
"fee_symbol": "USD",
"blockchain_ids": [
7.004643996595406e+76
],
"transaction_id": "A1B2C3D4",
"destination_symbol": "USD",
"estimated_network_fees": {
"lower_bound": "1.99",
"upper_bound": "2.99"
},
"network": "ethereum-mainnet",
"estimated_asset_changes": [
{
"symbol": "ETH",
"amount": "100"
}
],
"metadata": {
"web3_transaction_metadata": {
"confirmed_asset_changes": [
{
"symbol": "ETH",
"amount": "100"
}
]
}
},
"onchain_details": {
"signed_transaction": "01ac1872bb2967df00124a7fd15e470a10aab04852e19fc6f...",
"risk_assessment": {
"compliance_risk_detected": false,
"security_risk_detected": false
},
"chain_id": "1",
"nonce": "42",
"replaced_transaction_id": "123e4567-e89b-12d3-a456-426614174000",
"destination_address": 6.6325114945411165e+47,
"skip_broadcast": false,
"failure_reason": "insufficient_funds"
}
}
}Retrieve a specific transaction by its transaction ID.
curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/transactions/{transaction_id}{
"transaction": {
"id": "BTC-USD",
"wallet_id": "cde8dd34-b6cf-4c2c-82bc-5f86adacc868",
"portfolio_id": "0a66a8c0-24ea-4f18-b14f-8c9cf7c1ba40",
"symbol": "BTC",
"created_at": "2021-05-31T11:59:59.000Z",
"completed_at": "2021-05-31T12:09:31.000Z",
"amount": "100",
"transfer_from": {
"value": "0bf7bf1e-bafa-4d7e-9312-fa0bf3b63f27",
"address": 6.6325114945411165e+47,
"account_identifier": "387879289"
},
"transfer_to": {
"value": "0bf7bf1e-bafa-4d7e-9312-fa0bf3b63f27",
"address": 6.6325114945411165e+47,
"account_identifier": "387879289"
},
"network_fees": "1.99",
"fees": "4.53",
"fee_symbol": "USD",
"blockchain_ids": [
7.004643996595406e+76
],
"transaction_id": "A1B2C3D4",
"destination_symbol": "USD",
"estimated_network_fees": {
"lower_bound": "1.99",
"upper_bound": "2.99"
},
"network": "ethereum-mainnet",
"estimated_asset_changes": [
{
"symbol": "ETH",
"amount": "100"
}
],
"metadata": {
"web3_transaction_metadata": {
"confirmed_asset_changes": [
{
"symbol": "ETH",
"amount": "100"
}
]
}
},
"onchain_details": {
"signed_transaction": "01ac1872bb2967df00124a7fd15e470a10aab04852e19fc6f...",
"risk_assessment": {
"compliance_risk_detected": false,
"security_risk_detected": false
},
"chain_id": "1",
"nonce": "42",
"replaced_transaction_id": "123e4567-e89b-12d3-a456-426614174000",
"destination_address": 6.6325114945411165e+47,
"skip_broadcast": false,
"failure_reason": "insufficient_funds"
}
}
}TransactionsService transactionsService = PrimeServiceFactory.createTransactionsService(client);
GetTransactionByTransactionIdRequest request = new GetTransactionByTransactionIdRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.transactionId("TRANSACTION_ID_HERE")
.build();
GetTransactionByTransactionIdResponse response = transactionsService.getTransactionByTransactionId(request);
The portfolio ID
The transaction ID
A successful response.
Show child attributes
The ID of the transaction
"BTC-USD"
The wallet ID of the transaction
"cde8dd34-b6cf-4c2c-82bc-5f86adacc868"
The portfolio ID of the transaction
"0a66a8c0-24ea-4f18-b14f-8c9cf7c1ba40"
DEPOSIT, WITHDRAWAL, INTERNAL_DEPOSIT, INTERNAL_WITHDRAWAL, SWEEP_DEPOSIT, SWEEP_WITHDRAWAL, PROXY_DEPOSIT, PROXY_WITHDRAWAL, BILLING_WITHDRAWAL, REWARD, COINBASE_REFUND, TRANSACTION_TYPE_OTHER, WITHDRAWAL_ADJUSTMENT, DEPOSIT_ADJUSTMENT, KEY_REGISTRATION, DELEGATION, UNDELEGATION, RESTAKE, COMPLETE_UNBONDING, WITHDRAW_UNBONDED, STAKE_ACCOUNT_CREATE, CHANGE_VALIDATOR, STAKE, UNSTAKE, REMOVE_AUTHORIZED_PARTY, STAKE_AUTHORIZE_WITH_SEED, SLASH, COINBASE_DEPOSIT, CONVERSION, CLAIM_REWARDS, VOTE_AUTHORIZE, WEB3_TRANSACTION, ONCHAIN_TRANSACTION, PORTFOLIO_STAKE, PORTFOLIO_UNSTAKE TRANSACTION_CREATED, TRANSACTION_REQUESTED, TRANSACTION_APPROVED, TRANSACTION_GASSING, TRANSACTION_GASSED, TRANSACTION_PROVISIONED, TRANSACTION_PLANNED, TRANSACTION_PROCESSING, TRANSACTION_RESTORED, TRANSACTION_DONE, TRANSACTION_IMPORT_PENDING, TRANSACTION_IMPORTED, TRANSACTION_CANCELLED, TRANSACTION_REJECTED, TRANSACTION_DELAYED, TRANSACTION_RETRIED, TRANSACTION_FAILED, TRANSACTION_EXPIRED, TRANSACTION_BROADCASTING, OTHER_TRANSACTION_STATUS, TRANSACTION_CONSTRUCTED The asset symbol
"BTC"
The transaction creation time (as a UTC timestamp)
"2021-05-31T11:59:59.000Z"
The transaction completion time (as a UTC timestamp)
"2021-05-31T12:09:31.000Z"
The transaction amount in whole units
"100"
Show child attributes
PAYMENT_METHOD, WALLET, ADDRESS, OTHER, MULTIPLE_ADDRESSES, COUNTERPARTY_ID The value of the transfer location: payment method ID, wallet ID or crypto address
"0bf7bf1e-bafa-4d7e-9312-fa0bf3b63f27"
The crypto address of the transfer location
6.6325114945411165e+47
The tag/memo of the address, if applicable -- required for certain assets (e.g. XRP, XLM, etc.)
"387879289"
Show child attributes
PAYMENT_METHOD, WALLET, ADDRESS, OTHER, MULTIPLE_ADDRESSES, COUNTERPARTY_ID The value of the transfer location: payment method ID, wallet ID or crypto address
"0bf7bf1e-bafa-4d7e-9312-fa0bf3b63f27"
The crypto address of the transfer location
6.6325114945411165e+47
The tag/memo of the address, if applicable -- required for certain assets (e.g. XRP, XLM, etc.)
"387879289"
The blockchain network fees (in whole units) required in order to broadcast the transaction
"1.99"
The fees that the customer paid for the transaction (in whole units)
"4.53"
The asset in which fees will be paid
"USD"
The cryptocurrency network transaction hashes/IDs generated upon broadcast
[7.004643996595406e+76]The 8 character alphanumeric short form id for the transaction
"A1B2C3D4"
The destination asset symbol
"USD"
The network name specific to web3/onchain wallet transactions
"ethereum-mainnet"
The estimated asset changes (web3)
Show child attributes
BALANCE_TRANSFER, BALANCE_APPROVAL, ITEM_TRANSFER, ITEM_APPROVAL, ITEM_APPROVAL_ALL The currency symbol associated with the balance operation
"ETH"
The amount in whole units being transferred or approved
"100"
Show child attributes
Show child attributes
The transaction type label of the confirmed transaction post settlement
The confirmed asset changes (onchain)
Show child attributes
BALANCE_TRANSFER, BALANCE_APPROVAL, ITEM_TRANSFER, ITEM_APPROVAL, ITEM_APPROVAL_ALL The currency symbol associated with the balance operation
"ETH"
The amount in whole units being transferred or approved
"100"
Show child attributes
MEV_REWARD, INFLATION_REWARD, BLOCK_REWARD, VALIDATOR_REWARD, TRANSACTION_REWARD, STAKING_FEE_REBATE_REWARD The idempotency key associated with the transaction creation request
Show child attributes
The signed transaction data
"01ac1872bb2967df00124a7fd15e470a10aab04852e19fc6f..."
Show child attributes
Indicates if the transaction has been flagged for compliance concerns
false
Indicates if the transaction has been flagged for security concerns
false
The blockchain network chain ID. Will be empty for Solana transactions.
"1"
The transaction nonce. Only present for EVM-based blockchain transactions.
"42"
The ID of the transaction that this transaction replaced
"123e4567-e89b-12d3-a456-426614174000"
The destination address for the transaction
6.6325114945411165e+47
If set to true, the transaction will not be broadcast to the network. You can still retrieve the signed transaction from the GetTransaction endpoint by transaction ID once the transaction is created.
false
Reason for transaction failure if applicable
"insufficient_funds"
SIGNED, UNSIGNED Show child attributes
TRAVEL_RULE_STATUS_UNSPECIFIED, TRAVEL_RULE_STATUS_PENDING, TRAVEL_RULE_STATUS_SUBMITTED Was this page helpful?