Skip to main content

GetInTransactionByBlockNumberAndIndex

Transactions

Returns the structure of the internal transaction 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 transaction was recorded.

2. number (required)

integer

The number of the block whose information is requested.

3. index (required)

integer

The index of the transaction whose information is requested.

Result

(rpcInTransaction)

The transaction whose information is requested.

BlockHash
string
required

The hash of the block containing the transaction.

BlockNumber
integer
required

The number of the block containin the transaction.

ChainId
integer
required

The number of the chain containing the transaction.

FeeCredit
string
required

The fee credit for the transaction.

Flags
string
required

The array of transaction flags.

From
string
required

The address from where the transaction was sent.

GasUsed
string
required

The amount of gas spent on the transaction.

Hash
string
required

The transaction hash.

Index
string
required

The transaction index.

MaxFeePerGas
string
required

Maximum fee per gas for the transaction.

MaxPriorityFeePerGas
string
required

Priority fee for the transaction.

Seqno
string
required

The sequence number of the transaction.

Signature
string
required

The transaction signature.

Success
boolean
required

The flag that shows whether the transaction was successful.

To
string
required

The address where the transaction was sent.

Token
value
required

Token values.

Value
string
required

The transaction 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_getInTransactionByBlockNumberAndIndex",
"params": [
null,
null,
null
],
"id": 1
}'