Skip to main content

Call

Sending

Implements eth_call.

Params

(2)

1. args (required)

The arguments for the message call.

Data
string
required

The encoded bytecode of the message.

From
string
required

The address from which the message must be called.

GasLimit
string
required

The gas limit for the message.

GasPrice
string

The gas price for the message.

Input
string

The message input.

Seqno
integer
required

The sequence number of the message.

Value
integer
required

The message value.

2. blockNrOrHash (required)

The number/hash of the block.

BlockHash
string

(Optional) The hash of the block. Either this or BlockNumber is required.

BlockNumber
integer

(Optional) The number of the block. Either this or BlockHash is required.

RequireCanonical
boolean
required

The flag that determines whether the block must be a part of the canonical chain.

Result

(returnedValue)
string

The returned value of the executed contract.

API credentials

Username

Token

Params

args

blockNrOrHash


Request

curl -X POST https://api.devnet.nil.foundation/api/undefined/undefined \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
null,
null
],
"id": 1
}'