Skip to main content

eth_getTransactionByBlockHashAndIndex

Returns information about a transaction by block hash and transaction index position.

Params

(2)

1. block_hash (required)

string<hex>

2. index (required)

string<hex>

Result

(MonadTransaction)
blockHash
any
blockNumber
any
chainId
any
from
string
gas
string
hash
string
input
string
nonce
string
to
any
transactionIndex
any
value
string

Example

Request

await window.ethereum.request({
"method": "eth_getTransactionByBlockHashAndIndex",
"params": []
});

Result

{
"blockHash": null,
"blockNumber": null,
"chainId": null,
"from": "0x0000000000000000000000000000000000000000",
"gas": "0x0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"input": "0x",
"nonce": "0x0",
"to": null,
"transactionIndex": null,
"value": "0x0"
}

Params

block_hash

index


Request

await window.ethereum.request({
"method": "eth_getTransactionByBlockHashAndIndex",
"params": [
null,
null
]
});