singleTransactionPlan

function singleTransactionPlan<TTransactionMessage>(
    transactionMessage,
): SingleTransactionPlan<TTransactionMessage>;

Creates a SingleTransactionPlan from a TransactionMessage object.

Type Parameters

Type ParameterDefault type
TTransactionMessage extends Readonly<{ instructions: readonly Instruction<string, readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion; }> & TransactionMessageWithFeePayer<string>Readonly<{ instructions: readonly Instruction<string, readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion; }> & TransactionMessageWithFeePayer<string>

Parameters

ParameterType
transactionMessageTTransactionMessage

Returns

SingleTransactionPlan<TTransactionMessage>

Example

const plan = singleTransactionPlan(transactionMessage);
plan satisfies SingleTransactionPlan;

See

SingleTransactionPlan

On this page