curl --location --request POST 'https://a.api.s0.t.hmny.io' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "trace_transaction",
"params": ["0x0d449c8dde6c13e63064f49c531ba028878a4de368473cdff421255000c8047f"]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"blockNumber": 15077401,
"blockHash": "0x16170404833ad82495d96a64a484fe26098e2ec70c11f9b681574771ce2ee073",
"transactionHash": "0x0d449c8dde6c13e63064f49c531ba028878a4de368473cdff421255000c8047f",
"transactionPosition": 79,
"subtraces": 0,
"traceAddress": [],
"type": "call",
"action": {
"callType": "call",
"value": "0x0",
"to": "0x9b68bf4bf89c115c721105eaf6bd5164afcc51e4",
"gas": "0x37c04",
"from": "0x43c0f652a54c5d986040683a0b30dfaaee6135ba",
"input": "0xa9059cbb000000000000000000000000f389b9b05367352e898b401c239a98f85b2ec8b00000000000000000000000000000000000000000000000004d195062a85e8000"
},
"result": {
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
"gasUsed": "0x3cdf"
}
}
]
}
trace_block
Get the block trace information
Json containing block trace information
Sample Curl Request
curl --location --request POST 'https://a.api.s0.t.hmny.io' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "trace_block",
"params": ["0xE61019"]
}'
Sample Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"blockNumber": 15077401,
"blockHash": "0x16170404833ad82495d96a64a484fe26098e2ec70c11f9b681574771ce2ee073",
"transactionHash": "0x581f40d605041c3e3577058d24f156bd8ed189e31f903bc3f3bf5083b3a4e14b",
"transactionPosition": 0,
"subtraces": 15,
"traceAddress": [],
"type": "call",
"action": {
"callType": "call",
"value": "0x0",
"to": "0x406989017988c7689159938aa7ff0ac51e1b773c",
"gas": "0x5c7ac",
"from": "0x01f2eb240a4e1187c9ee3f4125257f4716a32d75",
"input": "0xae169a500000000000000000000000000000000000000000000000000000000000000004"
},
"result": {
"output": "0x",
"gasUsed": "0x4e41c"
}
},
...
}