createSolanaSponsoredTransaction
This function wraps instructions in a sponsored transaction using Alchemy’s fee payer service
Import
Parameters
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
Returns
Promise<VersionedTransaction>
- The sponsored transaction