Return opcode gas usage for every transaction in a block
POST
Returns EVM opcode gas usage aggregated per opcode for each transaction in the selected block.
Body
application/json
Returns EVM opcode gas usage aggregated per opcode for each transaction in the selected block.
Request payload for trace_blockOpcodeGas.
jsonrpcstring2.0requiredJSON-RPC protocol version.
methodstringtrace_blockOpcodeGasrequiredJSON-RPC method name.
idinteger | stringrequiredClient-provided JSON-RPC request identifier. The same value is returned in the response.
paramsArray<BlockIdentifier>requiredParameters: block identifier.
Response
200OK
Successful JSON-RPC response or JSON-RPC method error.
400Bad Request
Invalid HTTP request body or malformed JSON-RPC payload.
401Unauthorized
Missing or invalid API key.
500Internal Server Error
Internal server error.