eth_getTransactionByBlockNumberAndIndex
POST/
Returns information about a transaction by block number and transaction index position.
Parameters:
blockNumber
: the hash (32 bytes) of the block or the string 'earliest', 'latest' or 'pending'.index
: a hex-encoded integer representing the position in the block.
Returns:
result
: a transaction object, ornull
when no transaction was found. For details, seeeth_getTransactionByHash
.
Example:
"params": [
"0x29c",
"0x0" // 0
]
Request
Query Parameters
apikey stringrequired
Your API key
- application/json
Body
id integer
jsonrpc string
method string
params string[]
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc string
id integer
result string
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
Loading...
Was this helpful?
Happy React is loading...