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_replayBlockTransactions", "params": [ "latest", [ "trace" ] ] }'
{ "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>" } ] }
Replays all transactions in a block returning the requested traces for each transaction.
Parameters
Returns
Object - An object of type BlockTraceArray.
"demo"
1
"2.0"
Successful Response
Show child attributes