Skip to content

Transaction ​

A signed transaction as the transaction and block methods return it.

Fields ​

FieldTypeMeaning
hash32-byte hashThe transaction hash.
typehex number0x0 legacy, 0x1 access list, 0x2 EIP-1559, 0x3 blob, 0x4 EIP-7702.
fromaddressThe sender, recovered from the signature.
toaddress or nullThe recipient. null for a contract deployment.
valuehex number, weiThe ether that the transaction sends.
inputhex dataThe call data, or the deployment code.
noncehex numberThe nonce of the sender.
gashex numberThe gas limit.
gasPricehex number, weiLegacy and access list transactions: the gas price. Other types in a block: the price that the sender paid (base fee plus tip, at most the fee cap). In the pool: the fee cap.
maxFeePerGashex number, weiThe fee cap (type 2 and later).
maxPriorityFeePerGashex number, weiThe tip cap (type 2 and later).
chainIdhex numberThe chain ID. A legacy transaction without EIP-155 has none.
accessListlist ofThe access list (type 1 and later).
blobVersionedHasheslist of 32-byte hashesThe blob hashes (type 3).
maxFeePerBlobGashex number, weiThe blob fee cap (type 3).
authorizationListlist ofThe EIP-7702 authorizations (type 4).
v, r, s, yParityhex numbersThe signature. Legacy transactions have no yParity.
blockHash32-byte hash or nullThe block of the transaction. null for a pool transaction.
blockNumberhex number or nullThe number of that block. null for a pool transaction.
transactionIndexhex number or nullThe position in the block. null for a pool transaction.
blockTimestamphex numberThe time of the block. Only for a transaction in a block.

Used by ​

eth_getTransactionByBlockHashAndIndex, eth_getTransactionByBlockNumberAndIndex, eth_getTransactionByHash, eth_getTransactionBySenderAndNonce, txpool_content, txpool_contentFrom.