Home

trace_call

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

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Execute a new message call immediately without creating a transaction on the blockchain. This method allows debugging of contract calls by simulating execution and returning detailed trace information. It's particularly useful for testing and debugging smart contract interactions without spending gas.

Body

application/json

Execute a new message call immediately without creating a transaction on the blockchain. This method allows debugging of contract calls by simulating execution and returning detailed trace information. It's particularly useful for testing and debugging smart contract interactions without spending gas.

Request payload for trace_call.

jsonrpcstring2.0required

JSON-RPC version identifier

methodstringtrace_callrequired

The JSON-RPC method name

paramsArray<object | Array<string> | string>required

Parameters for the trace_call method

Show child attributes

Single JSON-RPC parameter value accepted by this method.

One of
fromstring

The address the transaction is sent from (20 bytes, hex encoded with 0x prefix). Optional for contract creation transactions.

tostring

The address the transaction is directed to (20 bytes, hex encoded with 0x prefix). Required for message calls, omitted for contract creation.

gasstring

The gas limit for the transaction (hex encoded). Maximum amount of gas units the call can consume.

gasPricestring

The gas price in wei (hex encoded). Amount of wei per gas unit.

valuestring

The value transferred in wei (hex encoded). Amount of ether to send with the call.

datastring

The compiled code of a contract OR hash of the invoked method signature and encoded parameters. Hex encoded data (function selector + ABI encoded arguments).

Array<string>tracevmTracestateDiff

The block number or block identifier. Can be "latest", "earliest", "pending", or a specific block number (hex encoded).

string
idintegerrequired

Request identifier used to match the response with the request.

Response

200OK

Successfully executed trace call and returned detailed trace information

400Bad Request

Bad request - invalid parameters

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal server error