Alchemy Logo

createSolanaSponsoredTransaction

function createSolanaSponsoredTransaction(
  instructions,
  connection,
  policyId,
  address,
): Promise<VersionedTransaction>;

Defined in: account-kit/signer/src/utils/solana.ts:18

This function wraps instructions in a sponsored transaction using Alchemy's fee payer service

ParameterTypeDescription

instructions

TransactionInstruction[]

The instructions to add sponsorship to

connection

Connection

The connection to use

policyId

string

The policy id to use

address

string

The address to use

Promise<VersionedTransaction>

  • The sponsored transaction
Was this page helpful?