Transaction Detail
API Documentation: Transaction Detail
Overview
This API endpoint allows you to get the transaction details of a particular transaction hash.
- HTTP Method: POST
- Endpoint:
/api/<VERSION>/wallet/transaction-detail
Request Body Parameters
network
(required if chainId empty): The network used for transactions. You can see Networks Reference to get the network code.chainId
(required if network empty): The chain ID of the network used for transactions.transactionHash
(required): The transaction hash of the transaction you want to get the details.
Example Request Body
{
"network": "ethereum",
"chainId": "1",
"transactionHash": "0x44222fb6d2c4e4c7fff099f33b92acb7899e55d6a470d5b92906642f9da14349"
}
Request
Request Headers
Authorization
(required): JWT token which was generated when user login and do not have an MPC wallet.x-client-secret
(required if x-app-id is empty): Client Secret which was generated when create an app in Xellar Dashboard.x-app-id
(required if x-client-secret is empty): App Id which was generated when create an app in Xellar Dashboard. (You need to add your origin in Xellar Dashboard if using x-app-id)
Example Request Syntax
curl -X POST -H "Content-Type: application/json" -H "x-client-secret: $YOUR_CLIENT_SECRET" -H "x-app-id: $YOUR_APP_ID" -H "Authorization: Bearer $YOUR_ACCESS_TOKEN" -d '{
"network": "ethereum",
"chainId": "1",
"transactionHash": "0x44222fb6d2c4e4c7fff099f33b92acb7899e55d6a470d5b92906642f9da14349"
}' <BASE_URL>/api/<VERSION>/wallet/transaction-detail
Response
The response will include a JSON object with the following properties:
status
(number): The HTTP status code of the response (e.g., 200 for success).message
(string): A message providing additional information about the operation.data
(object): An object containing the transaction details information.
Example Response
EVM Network
{
"status": 200,
"message": "Transaction Detail executed successfully",
"data": {
"transactionDetail": {
"_type": "TransactionReceipt",
"blockHash": "0xad2025a00b6eb0a3c60e01dc4e2517c7f32277dfba8af9e92b56c1b5dc9d67e6",
"blockNumber": 21136542,
"contractAddress": null,
"cumulativeGasUsed": "12572215",
"from": "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
"gasPrice": "20781380515",
"gasUsed": "21000",
"hash": "0x44222fb6d2c4e4c7fff099f33b92acb7899e55d6a470d5b92906642f9da14349",
"index": 149,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": 1,
"to": "0xcDA9D71bdfAe59b89Cee131eD3079f8AC4c77062"
}
}
}
Solana Network
{
"status": 200,
"message": "Transaction Detail executed successfully",
"data": {
"transactionDetail": {
"blockTime": 1736504023,
"meta": {
"computeUnitsConsumed": 29604,
"err": null,
"fee": 5000,
"innerInstructions": [
{
"index": 0,
"instructions": [
{
"accounts": [6],
"data": "84eT",
"programIdIndex": 7,
"stackHeight": 2
},
{
"accounts": [0, 2],
"data": "11119os1e9qSs2u7TsThXqkBSRVFxhmYaFKFZ1waB2X7armDmvK3p5GmLdUxYdg3h7QSrL",
"programIdIndex": 3,
"stackHeight": 2
},
{
"accounts": [2],
"data": "P",
"programIdIndex": 7,
"stackHeight": 2
},
{
"accounts": [2, 6],
"data": "6RbSPBDB1wbZg6farJ3bNUDoeiEYAs1LV5kRyPtvf2SVH",
"programIdIndex": 7,
"stackHeight": 2
}
]
}
],
"loadedAddresses": {
"readonly": [],
"writable": []
},
"logMessages": [
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
"Program log: Create",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: GetAccountDataSize",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1595 of 390055 compute units",
"Program return: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA pQAAAAAAAAA=",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Initialize the associated token account",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: InitializeImmutableOwner",
"Program log: Please upgrade to SPL Token 2022 for immutable owner support",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1405 of 383442 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: InitializeAccount3",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4214 of 379558 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 24960 of 400000 compute units",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
"Program log: Instruction: Transfer",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4644 of 375040 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success"
],
"postBalances": [
6525036960, 2039280, 2039280, 1, 0, 731913600, 68479484100,
934087680
],
"postTokenBalances": [
{
"accountIndex": 1,
"mint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr",
"owner": "sXWc8igtm5hPGXKS7N3iyint4F49FnTb4LKzgrEPYL6",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "138010900",
"decimals": 6,
"uiAmount": 138.0109,
"uiAmountString": "138.0109"
}
},
{
"accountIndex": 2,
"mint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr",
"owner": "5TjiF1eDekHqqBVLCtQ2zFNGDLxMTG4nNqG7uKEqjJ4K",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "2000",
"decimals": 6,
"uiAmount": 0.002,
"uiAmountString": "0.002"
}
}
],
"preBalances": [
6527081240, 2039280, 0, 1, 0, 731913600, 68479484100,
934087680
],
"preTokenBalances": [
{
"accountIndex": 1,
"mint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr",
"owner": "sXWc8igtm5hPGXKS7N3iyint4F49FnTb4LKzgrEPYL6",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "138012900",
"decimals": 6,
"uiAmount": 138.0129,
"uiAmountString": "138.0129"
}
}
],
"rewards": [],
"status": {
"Ok": null
}
},
"slot": 353111494,
"transaction": {
"message": {
"header": {
"numReadonlySignedAccounts": 0,
"numReadonlyUnsignedAccounts": 5,
"numRequiredSignatures": 1
},
"accountKeys": [
"sXWc8igtm5hPGXKS7N3iyint4F49FnTb4LKzgrEPYL6",
"45K2pUkThJqo4JgnSKCNdPvUGhXRG3NRCTwhE3z13ZHW",
"72znJSvB4vr77HDHL3Jj735nThEKG8UR3eKJac7oWceU",
"11111111111111111111111111111111",
"5TjiF1eDekHqqBVLCtQ2zFNGDLxMTG4nNqG7uKEqjJ4K",
"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
"Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr",
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
],
"recentBlockhash": "ECFTLh22hByU1vjSigEpySaBVqX2nG5GQeF3URF3RpRD",
"instructions": [
{
"accounts": [0, 2, 4, 6, 3, 7],
"data": "",
"programIdIndex": 5,
"stackHeight": null
},
{
"accounts": [1, 2, 0],
"data": "3pFgtwwZBtC7",
"programIdIndex": 7,
"stackHeight": null
}
],
"indexToProgramIds": {}
},
"signatures": [
"XpMFDVB2cjPB9JU8VJqTYhEbnkckf2KWRDKBp7PwxhZfHQzmfwQckL1rFogDGWJdmYtpgrP262KyBXK5kWMinUF"
]
}
}
}
}
Bitcoin Network
{
"status": 200,
"message": "Transaction Detail executed successfully",
"data": {
"transactionDetail": {
"txid": "c29ff5b6d0322554870ca2b54a593f1e048c6af6ebf56d5642ca292033efae5c",
"version": 1,
"locktime": 0,
"vin": [
{
"txid": "385dd836c32fec1da806948af812c28e63110b47a60289d6c295eec2a0237c60",
"vout": 1,
"prevout": {
"scriptpubkey": "0020fc337b9711c31bccb9ec52b77b4209ca6d78ce40cc203fbc440db8dc089c56c6",
"scriptpubkey_asm": "OP_0 OP_PUSHBYTES_32 fc337b9711c31bccb9ec52b77b4209ca6d78ce40cc203fbc440db8dc089c56c6",
"scriptpubkey_type": "v0_p2wsh",
"scriptpubkey_address": "bc1qlsehh9c3cvduew0v22mhkssfefkh3njqessrl0zypkudczyu2mrqdh79jn",
"value": 4891539240
},
"scriptsig": "",
"scriptsig_asm": "",
"witness": [
"",
"3045022100a3193cf245074df9c1aee476ce0661e1d874896a68863e0cf36edd90b75f524102204a33db4545c40be0fcd81b15c7c89f788854602d2d830e1d84db8d3d1002c02501",
"304502210084bb3c09a634df557ba04b8305aa987f57790cbcc8dd8fb18b44f4cc61c007b002207e7595accdea3ae720fb5166b664dbe49f08e7eb13b7534d972cf7cd0bf19d9c01",
"52210202e11a1d8120ad02af5398d66314fa3e24192cebba59e8a0ab96059b5ebcd1b5210312b084c01daa9a8b69ce19f5f79d606dea7bcc4e107f15f8de0e224e98321e30210200eca264a609446bed496d99396dbc4b1a4b0061a525d5b0e2a3a6d6b241219353ae"
],
"is_coinbase": false,
"sequence": 4294967293,
"inner_witnessscript_asm": "OP_PUSHNUM_2 OP_PUSHBYTES_33 0202e11a1d8120ad02af5398d66314fa3e24192cebba59e8a0ab96059b5ebcd1b5 OP_PUSHBYTES_33 0312b084c01daa9a8b69ce19f5f79d606dea7bcc4e107f15f8de0e224e98321e30 OP_PUSHBYTES_33 0200eca264a609446bed496d99396dbc4b1a4b0061a525d5b0e2a3a6d6b2412193 OP_PUSHNUM_3 OP_CHECKMULTISIG"
}
],
"vout": [
{
"scriptpubkey": "0014203a9862afa64b0ade2f5c0653d2d20244404d7e",
"scriptpubkey_asm": "OP_0 OP_PUSHBYTES_20 203a9862afa64b0ade2f5c0653d2d20244404d7e",
"scriptpubkey_type": "v0_p2wpkh",
"scriptpubkey_address": "bc1qyqafsc405e9s4h30tsr985kjqfzyqnt70mde3q",
"value": 40400
},
{
"scriptpubkey": "a914c643ef2c4175342971dbaf0ce3585f8cfcafb79d87",
"scriptpubkey_asm": "OP_HASH160 OP_PUSHBYTES_20 c643ef2c4175342971dbaf0ce3585f8cfcafb79d OP_EQUAL",
"scriptpubkey_type": "p2sh",
"scriptpubkey_address": "3KmM6gWJFVKBh8RjMdj2avHyTUdWRxELXo",
"value": 1442700
},
{
"scriptpubkey": "00143609746b5e2ef59b47461625ea07c34498dd18c6",
"scriptpubkey_asm": "OP_0 OP_PUSHBYTES_20 3609746b5e2ef59b47461625ea07c34498dd18c6",
"scriptpubkey_type": "v0_p2wpkh",
"scriptpubkey_address": "bc1qxcyhg6679m6ek36xzcj75p7rgjvd6xxx3mlk62",
"value": 1636297
},
{
"scriptpubkey": "00147fb9a0d957fa20bdabdf3bf3fe03010712723656",
"scriptpubkey_asm": "OP_0 OP_PUSHBYTES_20 7fb9a0d957fa20bdabdf3bf3fe03010712723656",
"scriptpubkey_type": "v0_p2wpkh",
"scriptpubkey_address": "bc1q07u6pk2hlgstm27l80eluqcpquf8ydjkzghpz6",
"value": 2327427
},
{
"scriptpubkey": "0020658161899133dade5e7c8045d851dd9031db600078a31db6b98703663c37fbd6",
"scriptpubkey_asm": "OP_0 OP_PUSHBYTES_32 658161899133dade5e7c8045d851dd9031db600078a31db6b98703663c37fbd6",
"scriptpubkey_type": "v0_p2wsh",
"scriptpubkey_address": "bc1qvkqkrzv3x0dduhnuspzas5wajqcakcqq0z33md4esupkv0phl0tq0sctdz",
"value": 4886091653
}
],
"size": 475,
"weight": 1132,
"fee": 763,
"status": {
"confirmed": false
}
}
}
}