SDK

Sponsor a Solana transaction via Grid API

Sponsors a Solana transaction using the Grid API by Squads. The Grid API replaces the fee payer with a sponsored account so users don't need SOL for gas. Only available for environments with SVM gas sponsorship enabled.

post/sdk/{environmentId}/solana/sponsorTransaction

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

Request body

transactionstring required

Base64 encoded unsigned Solana transaction (versioned transaction format)

Response

Sponsored transaction

transactionstring

Base64 encoded transaction with Grid as the fee payer

Changes

No recorded changes to this endpoint across all 3 revisions of this API.