Embedded Wallets
How to
Wallet Operation
Transaction Detail

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",
            "hash": "d730c1949d7f2b1280d6af406135809ae1cd28db3b90c008fff211bd378f0472",
            "version": 1,
            "size": 475,
            "vsize": 283,
            "weight": 1132,
            "locktime": 0,
            "vin": [
                {
                    "txid": "385dd836c32fec1da806948af812c28e63110b47a60289d6c295eec2a0237c60",
                    "vout": 1,
                    "scriptSig": {
                        "asm": "",
                        "hex": ""
                    },
                    "txinwitness": [
                        "",
                        "3045022100a3193cf245074df9c1aee476ce0661e1d874896a68863e0cf36edd90b75f524102204a33db4545c40be0fcd81b15c7c89f788854602d2d830e1d84db8d3d1002c02501",
                        "304502210084bb3c09a634df557ba04b8305aa987f57790cbcc8dd8fb18b44f4cc61c007b002207e7595accdea3ae720fb5166b664dbe49f08e7eb13b7534d972cf7cd0bf19d9c01",
                        "52210202e11a1d8120ad02af5398d66314fa3e24192cebba59e8a0ab96059b5ebcd1b5210312b084c01daa9a8b69ce19f5f79d606dea7bcc4e107f15f8de0e224e98321e30210200eca264a609446bed496d99396dbc4b1a4b0061a525d5b0e2a3a6d6b241219353ae"
                    ],
                    "sequence": 4294967293
                }
            ],
            "vout": [
                {
                    "value": 0.000404,
                    "n": 0,
                    "scriptPubKey": {
                        "asm": "0 203a9862afa64b0ade2f5c0653d2d20244404d7e",
                        "desc": "addr(bc1qyqafsc405e9s4h30tsr985kjqfzyqnt70mde3q)#fpu0ru4x",
                        "hex": "0014203a9862afa64b0ade2f5c0653d2d20244404d7e",
                        "address": "bc1qyqafsc405e9s4h30tsr985kjqfzyqnt70mde3q",
                        "type": "witness_v0_keyhash"
                    }
                },
                {
                    "value": 0.014427,
                    "n": 1,
                    "scriptPubKey": {
                        "asm": "OP_HASH160 c643ef2c4175342971dbaf0ce3585f8cfcafb79d OP_EQUAL",
                        "desc": "addr(3KmM6gWJFVKBh8RjMdj2avHyTUdWRxELXo)#2dxrx27k",
                        "hex": "a914c643ef2c4175342971dbaf0ce3585f8cfcafb79d87",
                        "address": "3KmM6gWJFVKBh8RjMdj2avHyTUdWRxELXo",
                        "type": "scripthash"
                    }
                },
                {
                    "value": 0.01636297,
                    "n": 2,
                    "scriptPubKey": {
                        "asm": "0 3609746b5e2ef59b47461625ea07c34498dd18c6",
                        "desc": "addr(bc1qxcyhg6679m6ek36xzcj75p7rgjvd6xxx3mlk62)#wps8u2zh",
                        "hex": "00143609746b5e2ef59b47461625ea07c34498dd18c6",
                        "address": "bc1qxcyhg6679m6ek36xzcj75p7rgjvd6xxx3mlk62",
                        "type": "witness_v0_keyhash"
                    }
                },
                {
                    "value": 0.02327427,
                    "n": 3,
                    "scriptPubKey": {
                        "asm": "0 7fb9a0d957fa20bdabdf3bf3fe03010712723656",
                        "desc": "addr(bc1q07u6pk2hlgstm27l80eluqcpquf8ydjkzghpz6)#ac6kkf9r",
                        "hex": "00147fb9a0d957fa20bdabdf3bf3fe03010712723656",
                        "address": "bc1q07u6pk2hlgstm27l80eluqcpquf8ydjkzghpz6",
                        "type": "witness_v0_keyhash"
                    }
                },
                {
                    "value": 48.86091653,
                    "n": 4,
                    "scriptPubKey": {
                        "asm": "0 658161899133dade5e7c8045d851dd9031db600078a31db6b98703663c37fbd6",
                        "desc": "addr(bc1qvkqkrzv3x0dduhnuspzas5wajqcakcqq0z33md4esupkv0phl0tq0sctdz)#ll2dlces",
                        "hex": "0020658161899133dade5e7c8045d851dd9031db600078a31db6b98703663c37fbd6",
                        "address": "bc1qvkqkrzv3x0dduhnuspzas5wajqcakcqq0z33md4esupkv0phl0tq0sctdz",
                        "type": "witness_v0_scripthash"
                    }
                }
            ],
            "hex": "01000000000101607c23a0c2ee95c2d68902a6470b11638ec212f88a9406a81dec2fc336d85d380100000000fdffffff05d09d000000000000160014203a9862afa64b0ade2f5c0653d2d20244404d7e8c0316000000000017a914c643ef2c4175342971dbaf0ce3585f8cfcafb79d87c9f71800000000001600143609746b5e2ef59b47461625ea07c34498dd18c683832300000000001600147fb9a0d957fa20bdabdf3bf3fe0301071272365685d73b2301000000220020658161899133dade5e7c8045d851dd9031db600078a31db6b98703663c37fbd60400483045022100a3193cf245074df9c1aee476ce0661e1d874896a68863e0cf36edd90b75f524102204a33db4545c40be0fcd81b15c7c89f788854602d2d830e1d84db8d3d1002c0250148304502210084bb3c09a634df557ba04b8305aa987f57790cbcc8dd8fb18b44f4cc61c007b002207e7595accdea3ae720fb5166b664dbe49f08e7eb13b7534d972cf7cd0bf19d9c016952210202e11a1d8120ad02af5398d66314fa3e24192cebba59e8a0ab96059b5ebcd1b5210312b084c01daa9a8b69ce19f5f79d606dea7bcc4e107f15f8de0e224e98321e30210200eca264a609446bed496d99396dbc4b1a4b0061a525d5b0e2a3a6d6b241219353ae00000000",
            "blockhash": "00000000000000000000379590873cb5d33d991f353a3e805b860414df7bb7db",
            "confirmations": 1556,
            "time": 1749037133,
            "blocktime": 1749037133
        }
    }
}