Type alias TransactionBase<TQuantity, TIndex, TPending>

TransactionBase<TQuantity, TIndex, TPending>: {
    blockHash: TPending extends true
        ? null
        : Hash;
    blockNumber: TPending extends true
        ? null
        : TQuantity;
    from: Address;
    gas: TQuantity;
    hash: Hash;
    input: Hex;
    nonce: TIndex;
    r: Hex;
    s: Hex;
    to: Address | null;
    transactionIndex: TPending extends true
        ? null
        : TIndex;
    typeHex: Hex | null;
    v: TQuantity;
    value: TQuantity;
    yParity: TIndex;
}

Type Parameters

  • TQuantity = bigint

  • TIndex = number

  • TPending extends boolean = boolean

Type declaration

  • blockHash: TPending extends true
        ? null
        : Hash

    Hash of block containing this transaction or null if pending

  • blockNumber: TPending extends true
        ? null
        : TQuantity

    Number of block containing this transaction or null if pending

  • from: Address

    Transaction sender

  • gas: TQuantity

    Gas provided for transaction execution

  • hash: Hash

    Hash of this transaction

  • input: Hex

    Contract code or a hashed method call

  • nonce: TIndex

    Unique number identifying this transaction

  • r: Hex

    ECDSA signature r

  • s: Hex

    ECDSA signature s

  • to: Address | null

    Transaction recipient or null if deploying a contract

  • transactionIndex: TPending extends true
        ? null
        : TIndex

    Index of this transaction in the block or null if pending

  • typeHex: Hex | null

    The type represented as hex.

  • v: TQuantity

    ECDSA recovery ID

  • value: TQuantity

    Value in wei sent with this transaction

  • yParity: TIndex

    The parity of the y-value of the secp256k1 signature.

Generated using TypeDoc