gillType aliases
CreateTransactionInput
type CreateTransactionInput<TVersion, TFeePayer, TLifetimeConstraint> = {
computeUnitLimit?: bigint | number;
computeUnitPrice?: bigint | number;
feePayer: TFeePayer;
instructions: Instruction[];
latestBlockhash?: TLifetimeConstraint;
version?: TVersion;
};Type Parameters
| Type Parameter | Default type |
|---|---|
TVersion extends TransactionVersion | "auto" | - |
TFeePayer extends Address | TransactionSigner | TransactionSigner |
TLifetimeConstraint extends | TransactionMessageWithBlockhashLifetime["lifetimeConstraint"] | undefined | undefined |
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
autoautomatically selects based on instruction content (default)legacyfor traditional transactions0for transactions using Address Lookup Tables
Default
auto