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.
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/solana/sponsorTransaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction": "<string>"
}
'{
"transaction": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"95b11417-f18f-457f-8804-68e361f9164f"
Request to sponsor a Solana transaction via Grid API
Base64 encoded unsigned Solana transaction (versioned transaction format)
^[A-Za-z0-9+/]+={0,2}$Sponsored transaction
Response containing the sponsored Solana transaction
Base64 encoded transaction with Grid as the fee payer
Was this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/solana/sponsorTransaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction": "<string>"
}
'{
"transaction": "<string>"
}