Supply a string literal to define a fee payer having a particular address.
The inferred type of the transaction message provided.
import { pipe } from '@solana/functional';
import { generateKeyPairSigner, setTransactionMessageFeePayerSigner } from '@solana/signers';
import { createTransactionMessage } from '@solana/transaction-messages';
const feePayer = await generateKeyPairSigner();
const transactionMessage = pipe(
createTransactionMessage({ version: 0 }),
message => setTransactionMessageFeePayerSigner(signer, message),
);
Sets the fee payer of a transaction message using a TransactionSigner.