The return type of transaction according to the Ethereum RPC standard.

interface TransactionRPC {
    accessList: {
        address: string;
        storageKeys: string[];
    }[];
    blockHash: string;
    blockNumber: string;
    chainId: string;
    from: string;
    gas: string;
    gasPrice: string;
    hash: string;
    input: string;
    maxFeePerGas: string;
    maxPriorityFeePerGas: string;
    nonce: string;
    r: string;
    s: string;
    to: string;
    transactionIndex: string;
    type: string;
    v: string;
    value: string;
    yParity: string;
}

Properties

accessList: {
    address: string;
    storageKeys: string[];
}[]
blockHash: string

Hash of the block where this transaction is included.

blockNumber: string

Number of the block where this transaction is included.

chainId: string

The chain id of the transaction

from: string

Address of the sender of this transaction.

gas: string

The gas provided by the sender, encoded as hexadecimal

gasPrice: string
hash: string

Hash of the transaction.

input: string

The data sent along with the transaction

maxFeePerGas: string

The maximum amount that can be spent to pay for base fee and priority fee expressed in hex.

maxPriorityFeePerGas: string

The maximum amount that can be tipped to the validator expressed in hex.

nonce: string

The nonce of the transaction.

Differs from Ethereum as it's not the sequential nonce.

r: string
s: string
to: string

The address of the receiver. null when it's a contract creation transaction

transactionIndex: string

The integer of the transaction's index position that the log was created from. null when it's a pending log

type: string

The transaction type in number, currently 0(Legacy Transaction) and 81(DynamicFee Transaction) are supported.

v: string
value: string

The value transferred in wei encoded as hexadecimal

yParity: string