Parameters
- blockNumberstring
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- indexstring
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject | null
The transaction response object, or null if no transaction is found:
- blockHashstring | null
The hash of the block where this log was in. null when it's a pending log
- blockNumberstring | null
The block number where this log was in. null when it's a pending log
- blockTimestampstring
The timestamp of the block where this transaction was in, encoded as hexadecimal
- fromstring
The address of the sender
- gasstring
The gas provided by the sender, encoded as hexadecimal
- gasPricestring
The gas price provided by the sender in wei, encoded as hexadecimal
- maxFeePerGasstring
The maximum fee per gas set in the transaction
- maxPriorityFeePerGasstring
The maximum priority gas fee set in the transaction
- hashstring
The hash of the transaction
- inputstring
The data sent along with the transaction
- noncestring
The number of transactions made by the sender prior to this one encoded as hexadecimal
- tostring | null
The address of the receiver. null when it's a contract creation transaction
- transactionIndexstring | null
The integer of the transaction's index position that the log was created from. null when it's a pending log
- valuestring
The value transferred in wei encoded as hexadecimal
- typestring
The transaction type
- chainIdstring
The chain id of the transaction, if any
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature
1{2"jsonrpc": "2.0",3"result": {4"type": "0x0",5"nonce": "0x6bddd",6"to": "0xa1cb9b7dcf7b01d897466ac13ec10264d66c6def",7"from": "0xa6452911d5274e2717bc1fa793b21ab600ec9133",8"value": "0x0",9"input": "0x6a7612020000000000000000000000002752d1c936264c9213d281336ea6ec50eb6a5c010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015f9b000000000000000000000000000000000000000000000000000000000000bc2000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002752d1c936264c9213d281336ea6ec50eb6a5c01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000004a2e62045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041e518d6e4d92cb711c06237df713bc55514efa3a97a18c2bd517f2f4f03cf333837ef2d2c2ce6c6d4c2f09d27a126505e2fa923664bb3fe1cf933c9c4f3629c2b1c00000000000000000000000000000000000000000000000000000000000000",10"gasPrice": "0x3b9aca00",11"chainId": "0x64",12"v": "0xeb",13"r": "0x57585628c3c166d5c351b49fb0716d85affe8ae5e6675ed0a054d569fb7bdf65",14"s": "0x16018d77b1a06bbb4419b4df0c2bb384fa3a0467edecb2b6659dc857d869ab9",15"hash": "0x78ca2742a03ee9ddfc6acc2e43268af5ad5febbd4cc0c95d24dfee94d952b413",16"transactionIndex": "0x0",17"blockHash": "0xa8b07fadd5006d676f1a2122ab72eca6e80de718b7175ade13e4140258ee558a",18"blockNumber": "0xc5043f",19"blockTimestamp": "0x5fa74365",20"gas": "0x340b3"21},22"id": 123}
1{2"jsonrpc": "2.0",3"result": {4"type": "0x0",5"nonce": "0x6bddd",6"to": "0xa1cb9b7dcf7b01d897466ac13ec10264d66c6def",7"from": "0xa6452911d5274e2717bc1fa793b21ab600ec9133",8"value": "0x0",9"input": "0x6a7612020000000000000000000000002752d1c936264c9213d281336ea6ec50eb6a5c010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015f9b000000000000000000000000000000000000000000000000000000000000bc2000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002752d1c936264c9213d281336ea6ec50eb6a5c01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000004a2e62045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041e518d6e4d92cb711c06237df713bc55514efa3a97a18c2bd517f2f4f03cf333837ef2d2c2ce6c6d4c2f09d27a126505e2fa923664bb3fe1cf933c9c4f3629c2b1c00000000000000000000000000000000000000000000000000000000000000",10"gasPrice": "0x3b9aca00",11"chainId": "0x64",12"v": "0xeb",13"r": "0x57585628c3c166d5c351b49fb0716d85affe8ae5e6675ed0a054d569fb7bdf65",14"s": "0x16018d77b1a06bbb4419b4df0c2bb384fa3a0467edecb2b6659dc857d869ab9",15"hash": "0x78ca2742a03ee9ddfc6acc2e43268af5ad5febbd4cc0c95d24dfee94d952b413",16"transactionIndex": "0x0",17"blockHash": "0xa8b07fadd5006d676f1a2122ab72eca6e80de718b7175ade13e4140258ee558a",18"blockNumber": "0xc5043f",19"blockTimestamp": "0x5fa74365",20"gas": "0x340b3"21},22"id": 123}