gill
gill/Type aliases

CreateTransactionInput

type CreateTransactionInput<TVersion, TFeePayer, TLifetimeConstraint> = {
  computeUnitLimit?: number | bigint;
  computeUnitPrice?: number | bigint;
  feePayer: TFeePayer;
  instructions: IInstruction[];
  latestBlockhash?: TLifetimeConstraint;
  version: TVersion;
};

Type Parameters

Type ParameterDefault type
TVersion extends TransactionVersion-
TFeePayer extends Address | TransactionSignerTransactionSigner
TLifetimeConstraint extends | TransactionMessageWithBlockhashLifetime["lifetimeConstraint"] | undefinedundefined

Properties

computeUnitLimit?

optional computeUnitLimit: number | bigint;

Compute unit limit value to set on this transaction


computeUnitPrice?

optional computeUnitPrice: number | bigint;

Compute unit price (in micro-lamports) to set on this transaction


feePayer

feePayer: TFeePayer;

Address or Signer that will pay transaction fees


instructions

instructions: IInstruction[];

List of instructions for this transaction


latestBlockhash?

optional latestBlockhash: TLifetimeConstraint;

Latest blockhash (aka transaction lifetime) for this transaction to accepted for execution on the Solana network


version

version: TVersion;

Transaction version

  • legacy is commonly used
  • 0 is needed for use with Address Lookup Tables

On this page