post https://ethereum-mainnet-archive.allthatnode.com/
Returns information about a transaction by block number and transaction index position.
Parameters
QUANTITY|TAG
- a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.QUANTITY
- the transaction index position.
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"id":1,
"method":"eth_getTransactionByBlockNumberAndIndex",
"params":[
"latest",
"0x0"
]
}'
Returns
Object
- A transaction object, or null when no transaction was found:blockHash
:DATA
, 32 Bytes - hash of the block where this transaction was in.null
when its pending.blockNumber
:QUANTITY
- block number where this transaction was in. null when its pending.from
:DATA
, 20 Bytes - address of the sender.gas
:QUANTITY
- gas provided by the sender.
gasPrice: QUANTITY - gas price provided by the sender in Wei.hash
:DATA
, 32 Bytes - hash of the transaction.input
:DATA
- the data send along with the transaction.nonce
:QUANTITY
- the number of transactions made by the sender prior to this one.to
:DATA
, 20 Bytes - address of the receiver. null when its a contract creation transaction.transactionIndex
:QUANTITY
- integer of the transactions index position in the block. null when its pending.value
:QUANTITY
- value transferred in Wei.v
:QUANTITY
- ECDSA recovery idr
:QUANTITY
- ECDSA signature rs
:QUANTITY
- ECDSA signature s
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x977fe5e637984830a7203224af053a66202cef4e2a655b12456225bee307b8c3",
"blockNumber": "0x10f215b",
"from": "0xc8b45a051e8bf87750a46c68a0ca5a3a5b8efac1",
"gas": "0x3d22a",
"gasPrice": "0x12e248b3fe",
"maxFeePerGas": "0x15ec4c5afd",
"maxPriorityFeePerGas": "0xcce416600",
"hash": "0x597a7eb9accb06b09b6af0cdd9f3b6fbf985d95d76421c851611bd694e1b81dd",
"input": "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000064bf820000000000000000000000000000000000000000000000000000000000000000030b000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000ca2cd75ba2c179404000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2002710f8640b0b79c236b0c14f67344b4d203ffcedc712000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x41d",
"to": "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b",
"transactionIndex": "0x0",
"value": "0xde0b6b3a7640000",
"type": "0x2",
"accessList": [],
"chainId": "0x1",
"v": "0x0",
"r": "0x9485242cef670363173bb68ea1d9b341f092a14ccc660c16a53073d07f770d41",
"s": "0x161d3e38f4d2cfd71d407c805b0a861dc9ae1f0cfc2e43c31941808c09ee04f6"
}
}