Skip to main content

GetRawInTransactionByBlockNumberAndIndex

Transactions

Returns the bytecode 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

(transactionBytecode)
string

The bytecode of the requested transaction.

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