Skip to main content

GetInTransactionReceipt

Receipts

Returns the receipt for the transaction with the given hash.

Params

(1)

1. hash (required)

string

The hash of the transaction.

Result

(rpcReceipt)

The receipt whose structure is requested.

BlockHash
string
required

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

BlockNumber
integer
required

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

Bloom
string
required

The receipt bloom filter.

ContractAddress
string
required

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

ErrorMessage
string

The error in case the transaction processing was unsuccessful.

Flags
string
required

The array of transaction flags.

GasPrice
string
required

The gas price at the time of processing the transaction.

GasUsed
string
required

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

Logs
logs
required

The logs attached to the receipt.

OutReceipts
outputReceipts
required

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

OutTxnIndex
integer
required

The index of the outgoing transaction whose receipt is requested.

OutTxnNum
integer
required

The number of the outgoing transactions whose receipt is requested.

Status
string

Status shows concrete error of the executed transaction.

Success
boolean
required

The flag that shows whether the transaction was successful.

Temporary
boolean

The flag that shows whether the transaction is temporary.

TransactionHash
string
required

The hash of the transaction whose receipt is requested.

TransactionIndex
integer
required

The index of the transaction whose receipt is requested.

API credentials

Username

Token

Params

hash


Request

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