Comment on page
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position
QUANTITY|TAG
- a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.QUANTITY
- the transaction index position.
Object
- The transaction response object, or null if no transaction is found:blockHash
- The hash of the block where this log was in. null when it's a pending logblockNumber
- The block number where this log was in. null when it's a pending logfrom
- The address of the sendergas
- The gas provided by the sender, encoded as hexadecimalgasPrice
- The gas price provided by the sender in wei, encoded as hexadecimalmaxFeePerGas
- The maximum fee per gas set in the transactionmaxPriorityFeePerGas
- The maximum priority gas fee set in the transactionhash
- The hash of the transactioninput
- The data sent along with the transactionnonce
- The number of transactions made by the sender before this one encoded as hexadecimalto
- The address of the receiver. null when it's a contract creation transactiontransactionIndex
- The integer of the transaction's index position that the log was created from. null when it's a pending logvalue
- The value transferred in wei encoded as hexadecimaltype
- The transaction typechainId
- The chain id of the transaction, if anyv
- The standardized V field of the signaturer
- The R field of the signatures
- The S field of the signature
curl --location 'https://rpc.eth.gateway.fm' \
--header 'Content-Type: application/json' \
--data '{
"id": 89,
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": [
"0x90f62a",
"0x3"
]
}'
{
"jsonrpc": "2.0",
"id": 89,
"result": {
"blockHash": "0x398bd9a4dd3a8d17940925b73b7bba8412d686ea27549dadc6311ff45e5740b8",
"blockNumber": "0x90f62a",
"chainId": "0x1",
"from": "0xf5bec430576ff1b82e44ddb5a1c93f6f9d0884f3",
"gas": "0x28b0a",
"gasPrice": "0xba43b7400",
"hash": "0x8c2b2666d73e4e0df8b9ad890af4974d2cf5e26dbb25822685bd7e49e86d38e3",
"input": "0x",
"nonce": "0x57215",
"r": "0xa769a34b6708ac95910b1c4188c84e7a4679f1870cd6d2de54f7dc6203ea7e26",
"s": "0x4313eca1b558e8ab8e01879105f2495bb45d5ffb55d49ef908c736d1dcab8bb",
"to": "0x2ab0fd0338dd08a2f927a36f5a6f27b033c5eba7",
"transactionIndex": "0x3",
"type": "0x0",
"v": "0x25",
"value": "0x5decc4243fd8000"
}
}
Last modified 7mo ago