Kit
Interfaces

TransactionMessageWithFeePayerSigner

Alternative to TransactionMessageWithFeePayer that uses a TransactionSigner for the fee payer.

Example

import { BaseTransactionMessage } from '@solana/transaction-messages';
import { generateKeyPairSigner, TransactionMessageWithFeePayerSigner } from '@solana/signers';
 
const transactionMessage: BaseTransactionMessage & TransactionMessageWithFeePayerSigner = {
    feePayer: await generateKeyPairSigner(),
    instructions: [],
    version: 0,
};

Type Parameters

Type ParameterDefault typeDescription
TAddress extends stringstringSupply a string literal to define a fee payer having a particular address.
TSigner extends TransactionSigner<TAddress>TransactionSigner<TAddress>Optionally provide a narrower type for the TransactionSigner.

Properties

PropertyModifierType
feePayerreadonlyTSigner

On this page