Test Mode
Build and test your whole integration without moving a single coin.
Your test key is in Dashboard → API Integration and starts with sk_test_. Requests made with it are checked exactly like live ones (amount, coin, currency, URLs, metadata, your plan, a wallet for the coin) and return the same response, plus "test": true. Nothing touches a blockchain: the address is a placeholder that no wallet can pay, no address is taken from your wallet, and test transactions never count toward your monthly limit.
1. Create a test transaction
curl -X POST https://api.griffnode.com/v1/transactions/create \
-H "Authorization: Bearer sk_test_YOUR_TEST_KEY" \
-H "Content-Type: application/json" \
-d '{
"crypto": "LTC",
"amount": 25.00,
"currency_fiat": "USD"
}'
The id starts with TTX-. Open its payment_url to see the page your customer sees, with a test mode banner on top.
2. Simulate the outcome
Pick what the customer does, from the API or with the buttons on the payment page:
curl -X POST https://api.griffnode.com/v1/transactions/TTX-.../simulate \
-H "Authorization: Bearer sk_test_YOUR_TEST_KEY" \
-H "Content-Type: application/json" \
-d '{ "outcome": "paid" }'
outcome | Status after | Webhooks sent, in order |
|---|---|---|
paid | completed | payment.pending, payment.completed |
overpaid | completed (105% paid) | payment.pending, payment.overpaid |
underpaid | partial (50% paid) | payment.pending, payment.partial |
expired | expired | payment.expired |
An underpaid transaction stays open, so you can send paid next to test a customer topping up. A finished one answers 409 TRANSACTION_FINAL. Left alone, a test transaction expires after 60 minutes like a live one and sends payment.expired. Creating one sends payment.created.
3. Handle the webhooks
Test events go to your webhook endpoints like live ones, signed the same way, and carry "test": true. Check that flag so a test event never ships an order:
{
"id": "evt_...",
"event": "payment.completed",
"timestamp": "2026-11-07T20:15:00Z",
"test": true,
"transaction_id": "TTX-...",
"status": "completed",
"currency_crypto": "LTC",
"currency_fiat": "USD",
"amount_fiat": "25.00",
"amount_usd": "25.00",
"amount_crypto": "0.30120000"
}
Test vs live
| Feature | TEST sk_test_ | LIVE sk_live_ |
|---|---|---|
| Validation, request and response format | Same as live | Same |
| Real address and on-chain payment | No, placeholder address | Yes |
| Counts toward monthly limit | No | Yes |
| Webhooks | Yes, with "test": true | Yes |
| Simulate an outcome | Yes | No, only real coins move it |
| Sees the other mode's transactions | No, test only | No, live only |
Buy a plan (/billing/checkout) | No, 403 LIVE_KEY_REQUIRED | Yes |
sk_test_ with sk_live_ in your environment variables. Test transactions stay in test mode and never become live ones.