Test a crypto wallet API without real coins: test mode on kryptr.io

Test keys, test wallets and simulated deposits on the same API: build deposits, webhooks, transfers, swaps and rules before a single real coin moves.

Published 4 min read

Integrating a wallet API means writing code for events you cannot easily cause: a customer's deposit, its confirmation, a transfer that fails for lack of funds. On a real network each try costs coins and minutes, and testnets need their own faucets, their own tokens and often their own endpoints.

On kryptr.io every account has a test mode on the same server, api.kryptr.io. It is a second, separate set of everything: wallets, API keys, webhooks, address book, rules and history, on a simulated network. Nothing in it is signed or broadcast, and no real coin moves.

Switch it on

In the dashboard, turn on Test mode in the sidebar. A violet banner shows that you are in it; the wallets, keys and webhooks you see now are the test ones. Make an API key there: it starts with pk_test_.

The keys keep the two sides apart:

  • a pk_test_ key works on test-mode data only;
  • a pk_live_ key works on live data only;
  • a test wallet's id read with a live key is 404, and the other way round.

Your code changes nothing but the key. The same routes, the same request signing, the same answers.

Make a deposit

A real deposit needs somebody to send coins. In test mode it is one request:

curl -X POST https://api.kryptr.io/api/v1/wallets/$WALLET/test-deposits \
  -H "X-API-Key: pk_test_..." -H "X-Timestamp: $TS" -H "X-Signature: $SIG" \
  -d '{"asset_id":"USDT.tron","amount":"100"}'
{
  "id": "b19091bb-bbb0-4d17-a9a2-ced47eb3c728",
  "wallet_id": "bd307c6d-62dc-48f0-a028-4aa19b791975",
  "network": "tron",
  "asset_id": "USDT.tron",
  "amount": "100",
  "from_address": "test_sender",
  "to_address": "TZ8u7DjsUbdf2iQv9NVqM9DBmJ8ZhwqVfH",
  "tx_hash": "test_5f0464c8156042d23dbee59332c1a6d0ffe76fd5e2e99f566872d47e11c421b5",
  "status": "detected",
  "confirmations": 0,
  "confirmations_required": 19,
  "screening": { "list": "OFAC SDN", "result": "no_match" },
  "seen_at": "2026-12-02T01:51:19Z"
}

deposit.detected goes out at once and deposit.confirmed 5 to 15 seconds later, so your code sees both states, in the same order as on a network. from_address is optional; give a real address of the network and it is screened against the OFAC SDN list like a real sender, so a listed address also gives deposit.flagged. Test deposits are capped at 1,000 a day per account. In the dashboard the same thing is the Test deposit button on a test wallet.

Webhooks

Test-mode events go to the test mode's webhook endpoints and to the test wallets' callback_url, signed the same way. Every webhook body carries livemode:

{ "id": "…", "type": "deposit.confirmed", "created_at": "…", "livemode": false, "data": { … } }

Check livemode before you credit anything: a receiver that serves both modes then cannot mix them up.

Transfers, swaps and rules

A test wallet does what a live one does, on the simulated network:

  • Transfers go from the simulated balance with no network fee and get a test_ hash. A transfer to another test wallet's address arrives there as its deposit. A transfer the balance does not cover is refused with 422 insufficient_funds, as on a real network.
  • Swaps are quoted by the provider test at CoinGecko prices less 0.5 %, and complete once the wallet's deposit to it is sent; the payout arrives as a deposit to the wallet's address on the target network.
  • Wallet rules fire on confirmed test deposits, with their minimums, limits and log.

Checked on kryptr.io, 2 December 2026

A throwaway account ran the whole flow on the production server at 01:51 to 01:52 UTC; all 25 checks of the run passed.

Step Result
Deposit of 100 USDT on TRON and 50 USDT on BSC to test wallet A detected at once, both confirmed 10 seconds later
Transfer of 30 USDT on TRON from A to test wallet B sent and confirmed 9 seconds after it was made
B's rule «send every USDT deposit on TRON back to A» ran on that deposit and sent the 30 USDT back; A again held 100
Swap of 20 USDT on BSC to USDC on Polygon 19.892295 USDC on A's Polygon address, completed 18.7 seconds after it was made
A live key reading test wallet A 404
A live wallet sending to A's TRON address 422 test_mode_address
A simulated deposit to the live wallet 409 live_wallet
Webhooks 24 events of the test side, every one with livemode: false; the live wallet's with true

What it does not test

The simulated network is not a real one. Network fees, confirmation times, node errors, reorganisations and a provider's real swap route are not simulated, and the network fee paid in the token is never needed there: a test wallet's fee quote answers needed: false. Before you go live, send one small real transfer on each network you use.

Live coins never reach the test side: a live wallet refuses to send to a test wallet's address (422 test_mode_address), because nothing on a real network would ever credit it.

Checklist

  • Make a pk_test_ key in Test mode and point your staging environment at api.kryptr.io with it.
  • Drive every deposit path with test-deposits: detected, confirmed, flagged.
  • Check livemode in your webhook receiver.
  • Test the refusals your code must handle, such as insufficient_funds and idempotency_conflict.
  • Then switch the key to pk_live_ and make one small real transfer per network. For the transfer flow itself see Send crypto over an API safely, and for the events crypto deposit webhooks.

More guides