Home

Return opcode gas usage for one transaction

POST
https://eth-archive.nownodes.io/

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.0required

JSON-RPC protocol version.

methodstringtrace_transactionOpcodeGasrequired

JSON-RPC method name.

idinteger | stringrequired

Client-provided JSON-RPC request identifier. The same value is returned in the response.

paramsArray<string>required

Parameters: 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.