@aptos-labs/ts-sdk - v3.1.1
    Preparing search index...

    Function deriveTransactionType

    • Derives the appropriate raw transaction type based on the provided transaction details. This function helps in identifying whether the transaction is a FeePayerRawTransaction, MultiAgentRawTransaction, or a standard RawTransaction.

      Parameters

      • transaction: AnyRawTransaction

        An object representing an Aptos transaction, which may include:

        • feePayerAddress - The address of the fee payer (optional).
        • secondarySignerAddresses - An array of secondary signer addresses (optional).
        • rawTransaction - The raw transaction data.

      Returns AnyRawTransactionInstance

      FeePayerRawTransaction | MultiAgentRawTransaction | RawTransaction