Test mode API keys
Use yourpk_test_ API key for test mode. Test and live mode use the same base URL (https://api.cherp.dev/v1) and the same code path — test mode routes to testnets automatically.
| Key format | Environment | Chains |
|---|---|---|
pk_live_<32chars> | Production | Solana mainnet, Base mainnet, Tempo mainnet |
pk_test_<32chars> | Test mode | Solana devnet, Base Sepolia, Tempo Moderato |
Simulating state transitions
The simulate endpoint lets you force state transitions without waiting for real chain confirmations:Available transitions
| Target state | Description |
|---|---|
confirmed | Simulate a successful confirmation |
failed | Simulate an on-chain failure |
expired | Simulate TTL expiry |
dropped | Simulate a dropped transaction (Solana) |
Failure reasons
When simulating afailed state, you can optionally specify a reason:
insufficient_balance, revert, slippage.
Test chain endpoints
| Chain | Testnet RPC |
|---|---|
| Solana | https://api.devnet.solana.com |
| Base | https://sepolia.base.org |
| Tempo | https://rpc.moderato.tempo.xyz |
Webhooks in test mode
Webhooks fire in test mode the same way they do in production. Thelivemode field in the webhook payload is false for test events, letting your server distinguish between test and live traffic.