Umi — API References - v1.6.0
    Preparing search index...

    Type Alias TransactionV1Config

    The compute budget of a V1 transaction. It replaces the ComputeBudget program instructions used by legacy and V0 transactions, which V1 transactions ignore.

    Beware that the runtime treats an unset computeUnitLimit or loadedAccountsDataSizeLimit as zero, so a V1 transaction that leaves them unset fails at execution. The TransactionBuilder defaults them for you, TransactionFactoryInterface.create does not.

    type TransactionV1Config = {
        computeUnitLimit?: number;
        heapSize?: number;
        loadedAccountsDataSizeLimit?: number;
        priorityFee?: SolAmount;
    }
    Index

    Properties

    computeUnitLimit?: number

    The maximum number of compute units the transaction may consume. At most 1,400,000. The TransactionBuilder defaults it to 200,000 per instruction, capped at 1,400,000.

    heapSize?: number

    The requested heap size in bytes. A multiple of 1,024 between 32,768 and 262,144; the runtime uses 32,768 when unset.

    loadedAccountsDataSizeLimit?: number

    The maximum number of bytes of account data the transaction may load. At most 64 MiB. The TransactionBuilder defaults it to 64 MiB.

    priorityFee?: SolAmount

    The total priority fee in lamports, not a price per compute unit.