Documentation Index
Fetch the complete documentation index at: https://docs.velumx.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Testing on Testnet
Test the full gasless flow end-to-end before deploying to mainnet.1. Fund Your Testnet Relayer
YourVELUMX_API_KEY works on both mainnet and testnet — the relayer routes based on the network field in each request. You still need STX in your relayer’s testnet balance.
- Log in to the VelumX Dashboard and copy your Relayer Address.
- Go to the Stacks Testnet Faucet and request STX for your relayer address.
- Repeat for your test wallet address — you’ll need testnet STX to hold tokens for USER_PAYS testing.
2. Switch the SDK to Testnet
network: 'testnet' to buildSponsoredContractCall:
3. Use Testnet Contract Addresses
Testnet deployer addresses start withST. The Bitflow testnet deployer is ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.
If you’re testing against your own paymaster contract, deploy it to testnet first using Clarinet or the Hiro Platform.
4. Run a Full DEVELOPER_SPONSORS Test
5. Verify on the Testnet Explorer
Once you have atxid, check it on the Stacks Testnet Explorer:
- Status:
success— the sponsored transaction was accepted and executed. - Sponsored by: your relayer address — confirms VelumX co-signed correctly.
- Fee payer: your relayer address — confirms the relayer paid STX gas, not the user.
6. Common Testnet Issues
| Issue | Cause | Fix |
|---|---|---|
insufficient_relayer_balance | Relayer has no testnet STX | Fund via the faucet |
invalid_sponsor_sig | Wrong network in buildSponsoredContractCall | Ensure network: 'testnet' is set |
contract_not_found | Using a mainnet contract address on testnet | Deploy your contract to testnet first |
| Wallet shows mainnet | Wallet not switched to testnet | Switch network in Leather/Xverse settings |