Home

Execute a call and return requested traces

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

Executes the given transaction call locally and returns the requested trace outputs. The transaction object omits nonce, the trace type array can include trace, vmTrace, and stateDiff, and optional block, state override, and block override parameters can be supplied.

Body

application/json

Executes the given transaction call locally and returns the requested trace outputs. The transaction object omits nonce, the trace type array can include trace, vmTrace, and stateDiff, and optional block, state override, and block override parameters can be supplied.

Request payload for trace_call.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringtrace_callrequired

JSON-RPC method name.

idinteger | stringrequired

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

paramsArray<TransactionCallObject | Array<TraceType> | string | string | StateOverrides | BlockOverrides>required

Parameters: transaction object, trace types, optional block identifier, optional state overrides, optional block overrides.

Show child attributes

trace_call positional parameter.

One of
fromstring

Optional sender address used as the caller for the traced transaction.

tostring

Optional recipient address or contract address. Omit for contract creation calls.

gasstring

Optional gas limit encoded as a hexadecimal quantity.

gasPricestring

Optional gas price encoded as a hexadecimal quantity.

valuestring

Optional amount of wei to transfer, encoded as a hexadecimal quantity.

datastring

Optional input data for the call, encoded as hex bytes.

inputstring

Optional alias for call data, encoded as hex bytes.

Array<TraceType>tracevmTracestateDiff

Ethereum block identifier accepted by the trace API.

One of

Block number encoded as a hexadecimal quantity, or a 32-byte block hash depending on method context.

string

Named Ethereum block tag.

stringlatestearliestpendingsafefinalized

Map of account addresses to temporary account-state overrides used for the trace.

StateOverrides
numberstring

Overridden block number encoded as a hexadecimal quantity.

timestampstring

Overridden block timestamp encoded as a hexadecimal quantity.

baseFeestring

Overridden base fee per gas encoded as a hexadecimal quantity.

gasLimitstring

Overridden block gas limit encoded as a hexadecimal quantity.

coinbasestring

Overridden block coinbase address.

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.