Appearance
Transaction
A signed transaction as the transaction and block methods return it.
Fields
| Field | Type | Meaning |
|---|---|---|
hash | 32-byte hash | The transaction hash. |
type | hex number | 0x0 legacy, 0x1 access list, 0x2 EIP-1559, 0x3 blob, 0x4 EIP-7702. |
from | address | The sender, recovered from the signature. |
to | address or null | The recipient. null for a contract deployment. |
value | hex number, wei | The ether that the transaction sends. |
input | hex data | The call data, or the deployment code. |
nonce | hex number | The nonce of the sender. |
gas | hex number | The gas limit. |
gasPrice | hex number, wei | Legacy 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. |
maxFeePerGas | hex number, wei | The fee cap (type 2 and later). |
maxPriorityFeePerGas | hex number, wei | The tip cap (type 2 and later). |
chainId | hex number | The chain ID. A legacy transaction without EIP-155 has none. |
accessList | list of | The access list (type 1 and later). |
blobVersionedHashes | list of 32-byte hashes | The blob hashes (type 3). |
maxFeePerBlobGas | hex number, wei | The blob fee cap (type 3). |
authorizationList | list of | The EIP-7702 authorizations (type 4). |
v, r, s, yParity | hex numbers | The signature. Legacy transactions have no yParity. |
blockHash | 32-byte hash or null | The block of the transaction. null for a pool transaction. |
blockNumber | hex number or null | The number of that block. null for a pool transaction. |
transactionIndex | hex number or null | The position in the block. null for a pool transaction. |
blockTimestamp | hex number | The 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.