Transactions are cryptographically signed instructions from accounts. An account will initiate a transaction to update the state of the Ethereum network. The simplest transaction is transferring ETH from one account to another.
In the , we queried the block that contains the transaction. We can iterate over all transactions in a block, and query a specific transaction by its hash.
Get the transaction with hash or return null if the transaction is unknown. If a transaction has not been mined, this method will search the transaction pool. Various backends may have more restrictive transaction pool access (e.g. if the gas price is too low or the transaction was only recently sent and not yet indexed) in which case this method may also return null.
Ge the transaction receipt for hash or return null if the transaction has not been mined.
Let's see what the transaction contains.