Kit
Interfaces

ITransactionMessageWithFeePayerSigner

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

Deprecated

Use TransactionMessageWithFeePayer instead. It was only renamed.

Example

import { BaseTransactionMessage } from '@solana/transaction-messages';
import { generateKeyPairSigner, ITransactionMessageWithFeePayerSigner } from '@solana/signers';
 
const transactionMessage: BaseTransactionMessage & ITransactionMessageWithFeePayerSigner = {
    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