Skip to main content

EstimateFee

Sending

Implements eth_estimateGas.

Params

(2)

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.

Result

(feeEstimation)
integer

Amount of coins.

API credentials

Username

Token

Params

args

Unsupported field schema for field root_Flags: Missing items definition.

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

mainBlockNrOrHash


Request

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