Return opcode gas usage for one transaction
POST
Returns EVM opcode gas usage aggregated per opcode for a single transaction. The order of opcode entries is not significant.
Body
application/json
Returns EVM opcode gas usage aggregated per opcode for a single transaction. The order of opcode entries is not significant.
Request payload for trace_transactionOpcodeGas.
jsonrpcstring2.0requiredJSON-RPC protocol version.
methodstringtrace_transactionOpcodeGasrequiredJSON-RPC method name.
idinteger | stringrequiredClient-provided JSON-RPC request identifier. The same value is returned in the response.
paramsArray<string>requiredParameters: transaction hash.
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.