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): Client secret which was generated when register in Xellar Embedded Wallet API Service Dashboard.
Example Request Syntax
curl -X POST -H "Content-Type: application/json" -H "x-client-secret: $YOUR_CLIENT_SECRET" -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"
]
}
}
}
}