isEvmGasSponsorshipEnabled to check if EVM gas sponsorship is enabled in your project settings before attempting to send sponsored transactions.
Usage
Return value
| Type | Description |
|---|---|
boolean | true if EVM gas sponsorship is enabled, false otherwise |
Requirements
- A Dynamic Client must be initialized before calling this function
- EVM gas sponsorship must be enabled in the Dynamic Dashboard under Settings > Embedded Wallets
React
isEvmGasSponsorshipEnabled is synchronous and works the same in React. Use it inside a button handler to decide which send path to take: