isSolanaGasSponsorshipEnabled returns whether SVM gas sponsorship is turned on in your project settings.
You don’t need to call this before sending a transaction.
signAndSendTransaction already sponsors gas automatically when the project setting is on and the wallet supports it. Use this function for UI affordances (e.g. labeling a button “Send (Sponsored)”) or analytics.Usage
- JavaScript
- React
Return value
| Type | Description |
|---|---|
boolean | true if SVM gas sponsorship is enabled, false otherwise |
Requirements
- A Dynamic Client must be initialized before calling this function
- SVM gas sponsorship must be enabled in the Dynamic Dashboard under Settings > Embedded Wallets