near-api-js - v7.4.0
    Preparing search index...
    • Creates a new transaction object with the provided parameters.

      Parameters

      • signerId: string

        The NEAR account ID of the transaction signer.

      • publicKey: PublicKey

        The public key associated with the signer.

      • receiverId: string

        The NEAR account ID of the transaction receiver.

      • nonce: string | number | bigint

        The nonce value for the transaction, represented as a BN, string, or number.

      • actions: Action[]

        An array of transaction actions to be performed.

      • blockHash: Uint8Array

        The hash of the block where the transaction will be included.

      • OptionalnonceIndex: number

        The gas key nonce lane, setting it creates a TransactionV1 signed by a gas key.

      • OptionalnonceMode: NonceMode

        Whether the nonce must be greater than the current one (monotonic) or exactly the next one (strict).

      Returns Transaction

      A new transaction object initialized with the provided parameters.