API Reference

trace_get - Trace API

Returns trace at the given position.

Parameters

  • Hash - Transaction hash.
  • Array - Index positions of the transaction hash in block.

Returns

Object - Trace object.


Example

Request

curl --location --request POST 'https://eth-mainnet.unifra.io/v1/{your-api-key} \
--header 'Content-Type: application/json' \
--data-raw '{"method":"trace_get","params":["0xf129cd5e21bcbe37fa892418807a7e6b6f4518306e04e81b2b19829e32ca17a1",["0x0"]],"id":1,"jsonrpc":"2.0"}'

Result

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "action": {
            "from": "0x5427fefa711eff984124bfbb1ab6fbf5e3da1820",
            "callType": "call",
            "gas": "0x297d9",
            "input": "0xa9059cbb000000000000000000000000b1c2a97f0daa7adcd5eee963aa020afd10caa7f50000000000000000000000000000000000000000000000000000000139b91aca",
            "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "value": "0x0"
        },
        "blockHash": "0x9cdb8919fe9c5c1cdb740520f919f8ad5a908ea0a8030089a35cebec231acf37",
        "blockNumber": 15789473,
        "result": {
            "gasUsed": "0xabf1",
            "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
        },
        "subtraces": 1,
        "traceAddress": [
            0
        ],
        "transactionHash": "0xf129cd5e21bcbe37fa892418807a7e6b6f4518306e04e81b2b19829e32ca17a1",
        "transactionPosition": 250,
        "type": "call"
    }
}

🚧

The below parameter inputs do not work, please reference the section above instead.

Language
Click Try It! to start a request and see the response here!