gill
Version:
a modern javascript/typescript client library for interacting with the Solana blockchain
25 lines • 1.74 kB
TypeScript
import type { Address, BaseTransactionMessage, IInstruction, ITransactionMessageWithFeePayer, ITransactionMessageWithFeePayerSigner, TransactionMessageWithBlockhashLifetime, TransactionSigner, TransactionVersion } from "@solana/kit";
import type { Simplify } from ".";
export type CreateTransactionInput<TVersion extends TransactionVersion, TFeePayer extends Address | TransactionSigner = TransactionSigner, TLifetimeConstraint extends TransactionMessageWithBlockhashLifetime["lifetimeConstraint"] | undefined = undefined> = {
/**
* Transaction version
* - `legacy` is commonly used
* - `0` is needed for use with Address Lookup Tables
* */
version: TVersion;
/** List of instructions for this transaction */
instructions: IInstruction[];
/** Address or Signer that will pay transaction fees */
feePayer: TFeePayer;
/**
* Latest blockhash (aka transaction lifetime) for this transaction to
* accepted for execution on the Solana network
* */
latestBlockhash?: TLifetimeConstraint;
/** Compute unit limit value to set on this transaction */
computeUnitLimit?: number | bigint;
/** Compute unit price (in micro-lamports) to set on this transaction */
computeUnitPrice?: number | bigint;
};
export type FullTransaction<TVersion extends TransactionVersion, TFeePayer extends ITransactionMessageWithFeePayer | ITransactionMessageWithFeePayerSigner, TBlockhashLifetime extends TransactionMessageWithBlockhashLifetime | undefined = undefined> = Simplify<BaseTransactionMessage<TVersion> & TFeePayer & (TBlockhashLifetime extends TransactionMessageWithBlockhashLifetime ? TransactionMessageWithBlockhashLifetime : {})>;
//# sourceMappingURL=transactions.d.ts.map