Skip to main content

Call

Sending

Implements eth_call.

Params

(3)

1. args (required)

The arguments for the message call.

Data
string

The encoded calldata.

FeeCredit
string
required

The fee credit for the message.

Flags
flags
required

The array of message flags.

From
string

The address from which the message must be called.

Message
string

The raw encoded input message.

Seqno
integer
required

The sequence number of the message.

Value
integer

The message value.

2. mainBlockNrOrHash (required)

The number/hash of the block.

3. overrides (required)

Map of address-state pairs to be overrided.

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

(callRes)

Response for eth_call.

CoinsUsed
string
required

The amount of coins spent on the message.

Data
string

Result of VM execution.

Error
string

Error produced during the call.

OutMessages
outMessages

Outbound messages produced by the message.

StateOverrides
stateOverrides

Updated contracts state.

API credentials

Username

Token

Params

args

Unsupported field schema for field root_Flags: Missing items definition.

{
  "title": "flags",
  "type": "array"
}

mainBlockNrOrHash

overrides


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,
null
],
"id": 1
}'