Common API Error Messages
If you're encountering issues with our API, this guide will help you understand some of our common API error messages.
General Errors
The following errors apply to all of Swing's endpoints:
- 400 - Bad Request: This indicates an incorrect parameter. Ensure that all required parameters are correctly set.
- 403 - Forbidden: The IP address you're using to access the API is within an unsupported jurisdiction.
Specific Errors:
The following errors apply to only the /send
endpoint:
- 400 - Bad Request:
- Transfer amount exceeds allowance: This error indicates that the amount you are trying to transfer is greater than the amount that has been approved (allowed) for transfer by the user.
- Insufficient funds for intrinsic transaction cost: This error indicates that the user has enough funds in thier wallets, but not enough to cover the gas fees.
- execution reverted: ERC20: transfer amount exceeds balance: This error indicates that the transaction was reverted because the amount of ERC20 tokens you attempted to transfer is greater than the balance available in the sender's account.