gill
gill/Type aliases

CreateTransactionInput

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

Type Parameters

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

Properties

computeUnitLimit?

optional computeUnitLimit: bigint | number;

Compute unit limit value to set on this transaction


computeUnitPrice?

optional computeUnitPrice: bigint | number;

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


feePayer

feePayer: TFeePayer;

Address or Signer that will pay transaction fees


instructions

instructions: Instruction[];

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?

optional version: TVersion;

Transaction version

  • auto automatically selects based on instruction content (default)
  • legacy for traditional transactions
  • 0 for transactions using Address Lookup Tables

Default

auto

On this page