Troubleshooting
The 0x Solana Swap API is available via priority access. Apply now to start building.
When working with Solana transactions and the 0x Swap API, you may encounter some common issues. Below are tips to help diagnose and resolve them:
Debugging Tips
- Log your transaction signature and monitor it on a Solana explorer (e.g. Solscan) to track status.
- Use
connection.getLatestBlockhash()before each transaction to ensure blockhash freshness. - Use the transaction confirmation step to catch failures early.
- Enable
skipPreflight: falseduring development to validate transactions before sending. - Check API response error messages carefully; they often indicate what went wrong.
If you continue to experience issues, consider reaching out to the 0x developer support or the Solana developer community for assistance.