v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB

Decode a transaction

Returns the raw json of the decoded transaction

post/{blockchain_id}/decode

Request body

txstring required

The encoded transaction to be decoded.

Example request

{
  "tx": "0100000001ca19af5fb94ced7e62b623d0039a398a42e60050405a1341efe475894629c131010000008b483045022100d77b002b3142013b3f825a730f5bc3ead2014266f07ba4449269af0cf6f086310220365bca1d616ba86fac42ad69efd5f92c5ed6cf16f27ebf5ab55010efc72c219d014104417eb0abe69db2eca63c84eb44266c29c24973dc81cde16ca86c9d923630cb5f797bae7d7fab13498e06146111356eb271da74add05ebda8f72ff2b2878fddb7ffffffff0410270000000000001976a914344a0f48ca150ec2b903817660b9b68b13a6702688ac204e0000000000001976a914344a0f48ca150ec2b903817660b9b68b13a6702688ac30750000000000001976a914344a0f48ca150ec2b903817660b9b68b13a6702688ac48710000000000001976a914d6fa8814924b480fa7ff903b5ef61100ab4d92fe88ac00000000"
}

Response

OK

OR
OR
OR
OR
OR

Example response

{
  "chain_id": "11155111",
  "type": "EIP-1559",
  "to": "0xaFF4481D10270F50f203E0763e2597776068CBc5",
  "from": "0x4B2c3484037d56b3d50C7BB7cFD1C97497BCEee0",
  "value": 1000000000000000000,
  "nonce": 6,
  "decoded_data": {
    "_data": "",
    "_from": "0x557754f4fc8626b9fd3daaf651e2a1f0e1b9d26b",
    "_id": 6.171220375803133e+76,
    "_to": "0x58b3e138f081709cc5e420680354dc4655ba5e13",
    "_value": 1
  },
  "v": "0",
  "r": "255739fcdac7b24cbc01bb0136d27aaec23d2d4e96c2e5b55e71ef688a46c809",
  "s": "7bac7ae4a4bdb80759565b0d049bf1ed0aefc10bd4bab2520e83180e85780a87",
  "public_key": "0x0462d8d8df0c08d7b4b63be717b3e1887f903e4e2c7898fe40499cf6c510c70bc319cf6c3aaa3c216de40e9baffe68ccd34b7a134fc3369b611526d5528036e8c7",
  "hash": "0xf41b3f510d90b178a5b065da17547172d7c67688dd4bce3dd984e2620f6f9c52",
  "data": "0x7ff36ab5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000004b2c3484037d56b3d50c7bb7cfd1c97497bceee00000000000000000000000000000000000000000000000000000000064c4270b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d60000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f984",
  "method_hash": "0x7ff36ab5",
  "method_signature": "swapExactETHForTokens(uint256,address[],address,uint256)",
  "full_method_signature": "wapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline)"
}