Transactions
Table function
The eth_transaction_rpc table logs all transactions on the Ethereum blockchain. Each entry details a single transaction, providing information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the core operations on the Ethereum blockchain, initiated by users to transfer value, deploy smart contracts, or interact with.
Procedure
To utilize the eth_transactions_rpc function, follow these steps:
Identify the range of blocks you want to scan by determining the
fromBlock
andtoBlock
parameters.Obtain the RPC URL of your Ethereum node, which will be used to connect and interact with the blockchain.
Call the eth_transactions_rpc function in your application or script, providing the necessary inputs:
fromBlock
,toBlock
, andrpc_url
.Review the output, which will include detailed transaction data from the specified block range.
Use this data to analyze transactions, monitor activity, or assist in any other blockchain-related operations as needed.
Inputs
fromBlock
BIGINT
Block number to start scanning from.
toBlock
BIGINT
Block number to stop scanning at.
url
VARCHAR
URL of the Ethereum node.
Outputs
blockHash
VARCHAR
Hash of the block containing the log
blockNumber
BIGINT
Number of the block containing the log
transactionIndex
INTEGER
Transaction's position within the block
nonce
INTEGER
The number of transactions made by the sender prior to this one.
hash
VARCHAR
Hash of the transaction
from
VARCHAR
Address of the sender
to
VARCHAR
Address of the receiver (null for contract creation)
value
VARCHAR
Value transferred in Wei
gasPrice
BIGINT
Gas price provided by sender in Wei
gas
BIGINT
Gas provided by sender
input
VARCHAR
Data sent along with transaction
maxFeePerGas
BIGINT
Total fee that covers both base and priority fees
maxPriorityFeePerGas
BIGINT
Fee given to miners to incentivize them to include the transaction
type
VARCHAR
Type of the transaction
Example
Dependent RPC Method
eth_getBlockByNumber
Last updated