• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/transaction-messages
  • setTransactionMessageLifetimeUsingBlockhash

Function setTransactionMessageLifetimeUsingBlockhash

  • setTransactionMessageLifetimeUsingBlockhash<
        TTransaction extends
            Readonly<
                {
                    instructions: readonly IInstruction<
                        string,
                        readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
                    >[];
                    version: TransactionVersion;
                },
            > & TransactionMessageWithDurableNonceLifetime<string, string, string>,
    >(
        blockhashLifetimeConstraint: Readonly<
            { blockhash: Blockhash; lastValidBlockHeight: bigint },
        >,
        transaction: TTransaction,
    ): Omit<TTransaction, "lifetimeConstraint"> & TransactionMessageWithBlockhashLifetime
  • Type Parameters

    • TTransaction extends Readonly<
          {
              instructions: readonly IInstruction<
                  string,
                  readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
              >[];
              version: TransactionVersion;
          },
      > & TransactionMessageWithDurableNonceLifetime<string, string, string>

    Parameters

    • blockhashLifetimeConstraint: Readonly<{ blockhash: Blockhash; lastValidBlockHeight: bigint }>
    • transaction: TTransaction

    Returns Omit<TTransaction, "lifetimeConstraint"> & TransactionMessageWithBlockhashLifetime

    • Defined in packages/transaction-messages/src/blockhash.ts:40
  • setTransactionMessageLifetimeUsingBlockhash<
        TTransaction extends
            | Readonly<
                {
                    instructions: readonly IInstruction<
                        string,
                        readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
                    >[];
                    version: TransactionVersion;
                },
            >
            | Readonly<
                {
                    instructions: readonly IInstruction<
                        string,
                        readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
                    >[];
                    version: TransactionVersion;
                },
            > & TransactionMessageWithBlockhashLifetime,
    >(
        blockhashLifetimeConstraint: Readonly<
            { blockhash: Blockhash; lastValidBlockHeight: bigint },
        >,
        transaction: TTransaction,
    ): TransactionMessageWithBlockhashLifetime & TTransaction
  • Type Parameters

    • TTransaction extends
          | Readonly<
              {
                  instructions: readonly IInstruction<
                      string,
                      readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
                  >[];
                  version: TransactionVersion;
              },
          >
          | Readonly<
              {
                  instructions: readonly IInstruction<
                      string,
                      readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[],
                  >[];
                  version: TransactionVersion;
              },
          > & TransactionMessageWithBlockhashLifetime

    Parameters

    • blockhashLifetimeConstraint: Readonly<{ blockhash: Blockhash; lastValidBlockHeight: bigint }>
    • transaction: TTransaction

    Returns TransactionMessageWithBlockhashLifetime & TTransaction

    • Defined in packages/transaction-messages/src/blockhash.ts:47

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc