gill
gill/Type aliases

PrepareTransactionConfig

type PrepareTransactionConfig<TMessage> = {
  blockhashReset?: boolean;
  computeUnitLimitMultiplier?: number;
  computeUnitLimitReset?: boolean;
  rpc: Rpc<SimulateTransactionApi & GetLatestBlockhashApi>;
  transaction: TMessage;
};

Type Parameters

Type Parameter
TMessage extends PrepareCompilableTransactionMessage

Properties

blockhashReset?

optional blockhashReset: boolean;

Whether or not you wish to force reset the latest blockhash (if one is already set)

Default: true


computeUnitLimitMultiplier?

optional computeUnitLimitMultiplier: number;

Multiplier applied to the simulated compute unit value obtained from simulation

Default: 1.1


computeUnitLimitReset?

optional computeUnitLimitReset: boolean;

Whether or not you wish to force reset the compute unit limit value (if one is already set) using the simulation response and computeUnitLimitMultiplier


rpc

rpc: Rpc<SimulateTransactionApi & GetLatestBlockhashApi>;

RPC client capable of simulating transactions and getting the latest blockhash


transaction

transaction: TMessage;

Transaction to prepare for sending to the blockchain

On this page