chain

Decode Transaction

Decodes a raw, signed transaction into a human-readable format, revealing fields like nonce, gas price, recipient, value, and signature components. This helps developers and users audit or debug transactions by highlighting asset changes (sender, receiver, and transferred amount).

💡 Compute Unit Value: 45 (Fixed)

post/defi/v1/chain/decodetransaction

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/chain/decodetransaction
  • Auth
    API key in header X-API-Key

Request body

chainId'1' | '11155111' | '56' | '97' | '43114' | '338' | '900' | '901' | '1200' | '1201' | '43113' | '42161' | '10' | '11155420' | '4002' | '324' | '300' | 'cosmoshub-4' | '1600' | '1601' | '1700' | '1701' | 'osmosis-1' | 'osmo-test-5' | '1800' | '1801' | '137' | '80002' | '250' | '8453' | '84532' | '1500' | '1501' | '5000' | '5003' | '8217' | '1001'

The unique ID to direct queries or transactions to the correct blockchain. Find more here.

chainSymbolstring

The abbreviated chain name for queries or transactions.

rawTransactionstring required

A signed transaction serialized as a base64 string, used to simulate contract execution on the blockchain.

Example request

{
  "chainId": "1",
  "chainSymbol": "ETH",
  "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "parsedTx": {
      "nonce": 0,
      "gasPrice": {
        "type": "BigNumber",
        "hex": "0x09c9919d87"
      },
      "gasLimit": {
        "type": "BigNumber",
        "hex": "0x0a4a11"
      },
      "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
      "value": {
        "type": "BigNumber",
        "hex": "0x01"
      },
      "data": "0x",
      "chainId": 1,
      "v": 37,
      "r": "0x7542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015",
      "s": "0x05f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049",
      "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
      "hash": "0x5c3ef8d1720f481a6dbeb58f4d6cb404f9e2b6f31ba52ba5c8df48142b9e2ad3",
      "type": null
    },
    "assetChanges": {
      "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
      "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
      "value": {
        "type": "BigNumber",
        "hex": "0x01"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.