isGasSponsorshipError
A type guard function that checks if an error is related to gas sponsorship policies. This is useful for handling cases where a transaction was expected to be sponsored but didn’t match any sponsorship policies.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
err | unknown | The error to check |
Returns
boolean - Returns true if the error is a gas sponsorship error, false otherwise.
Related functions
- canSponsorTransaction - Check if a transaction can be sponsored before sending
- createKernelClientForWalletAccount - Create a ZeroDev Kernel client