Skip to main content

GetInMessageByBlockNumberAndIndex

Messages

Returns the structure of the internal message with the given index and contained within the block with the given number.

Params

(3)

1. shardId (required)

integer

The ID of the shard where the message was recorded.

2. number (required)

integer

The number of the block whose information is requested.

3. index (required)

integer

The index of the message whose information is requested.

Result

(rpcInMessage)

The message whose information is requested.

BlockHash
string
required

The hash of the block containing the message.

BlockNumber
integer
required

The number of the block containin the message.

ChainId
integer
required

The number of the chain containing the message.

Currency
value
required

Currency values.

FeeCredit
string
required

The fee credit for the message.

Flags
string
required

The array of message flags.

From
string
required

The address from where the message was sent.

GasUsed
string
required

The amount of gas spent on the message.

Hash
string
required

The message hash.

Index
string
required

The message index.

Seqno
string
required

The sequence number of the message.

Signature
string
required

The message signature.

Success
boolean
required

The flag that shows whether the message was successful.

To
string
required

The address where the message was sent.

Value
string
required

The message value.

API credentials

Username

Token

Params

shardId

number

index


Request

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