addSponsorship
Adds sponsorship to a transaction. Used to have a party like Alchemy pay for the transaction.
Import
import { SolanaSigner } from "@account-kit/signer";
Parameters
instructions
TransactionInstruction[]
- The instructions to add to the transaction
connection
Connection
- The connection to use for the transaction
policyId
string
- The policy ID to add sponsorship to
Returns
Promise<VersionedTransaction>
The transaction with sponsorship added