alchemy_requestFeePayer

Requests fee and rent sponsorship for a Solana transaction and returns the fully-signed serializedTransaction (now containing the fee-payer signature).

We support rent sponsorship for createAccount and createAssociatedTokenAccount programs. If you need support for sponsoring rent in custom programs, please contact us at [email protected].

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
policyIdstring or list of stringsRequired
The Gas Manager Policy ID or list of Gas Manager Policy IDs.
serializedTransactionstringRequiredformat: "^[A-Za-z0-9+/]+={0,2}$"

The unsigned transaction produced by tx.serialize(). It may already contain a feePayer; the service will overwrite it with the sponsoring account and add the fee-payer signature.

Response

Object containing the fully-signed transaction ready for sendRawTransaction.

serializedTransactionstring

The transaction after the service sets the feePayer field and adds the fee-payer signature.