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): 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

{
    "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"
        }
    }
}