Skip to main content

GetInMessageReceipt

Receipts

Returns the receipt for the message with the given hash.

Params

(2)

1. shardId (required)

integer

The ID of the shard where the message was recorded.

2. hash (required)

string

The hash of the message.

Result

(rpcReceipt)

The receipt whose structure is requested.

BlockHash
string
required

The hash of the block containing the message whose receipt is requested.

BlockNumber
integer
required

The number of the block containin the message whose receipt is requested.

Bloom
string
required

The receipt bloom filter.

ContractAddress
string
required

The address of the contract that has originated the message whose receipt is requested.

ErrorMessage
string

The error in case the message processing was unsuccessful.

GasPrice
string
required

The gas price at the time of processing the message.

GasUsed
string
required

The amount of gas spent on the message whose receipt is requested.

Logs
logs
required

The logs attached to the receipt.

MessageHash
string
required

The hash of the message whose receipt is requested.

MessageIndex
integer
required

The index of the message whose receipt is requested.

OutMsgIndex
integer
required

The index of the outgoing message whose receipt is requested.

OutMsgNum
integer
required

The number of the outgoing messages whose receipt is requested.

OutReceipts
outputReceipts
required

Receipts of the outgoing messages. Set to nil for messages that have not yet been processed.

Status
string

Status shows concrete error of the executed message.

Success
boolean
required

The flag that shows whether the message was successful.

Temporary
boolean

The flag that shows whether the message is temporary.

API credentials

Username

Token

Params

shardId

hash


Request

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