alchemy_requestFeePayer
Requests fee sponsorship for a Solana transaction and returns the updated serializedTransaction with the paymaster fee payer set and signed.
On every sponsored request, any top-level SystemProgram.createAccount and Associated Token Program Create/CreateIdempotent instructions are rewritten so the paymaster funds them directly — no opt-in required. For CPI-driven account creation, opt into rent prefunding with prefundRent: true; policies using prefundRent must set maxSpendPerTxnUsd.
CPI rent prefunding is allowlisted. Contact support@alchemy.com for access.
Path Parameters
docs-demoFor higher throughput, create your own API key
Request
Object containing the policy ID, serialized transaction, and optional rent-prefunding settings.
Responses
200
Object containing the sponsored transaction plus fee and rent estimates.