BlockPI Network
Search
⌃K
Comment on page

trace_block

Returns traces created at given block.

Parameters:

Quantity |Tag - Integer of a block number, or the string 'earliest', 'latest' or 'pending'.

Returns:

Array - Block traces

Example:

// Request
curl https://ethereum.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" -d '{"method":"trace_block","params":["latest"],"id":1,"jsonrpc":"2.0"}'
​
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":{as described above}
}