cURL
curl --request POST \ --url https://{network}.s.chainbase.online/v1/{api-key} \ --header 'Content-Type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "trace_block", "params": [ "latest" ] } '
{ "id": 1, "jsonrpc": "2.0", "result": [ { "action": { "from": "<string>", "callType": "<string>", "gas": "<string>", "input": "<string>", "to": "<string>", "value": "<string>" }, "blockHash": "<string>", "blockNumber": "<string>", "result": { "gasUsed": "<string>", "output": "<string>" }, "subtraces": 123, "traceAddress": [ 123 ], "transactionHash": "<string>", "transactionPosition": 123, "type": "<string>" } ] }
Returns traces created at given block.
Parameters
TAG - Integer of a block number, or the string ‘earliest’, ‘latest’ or ‘pending’.
Returns
Object - An object of type AdhocTraceArray.
"demo"
1
"2.0"
Successful Response
Show child attributes