# kryptr.io — full text > kryptr.io lets developers create any number of multi-currency crypto wallets over a REST API. Each wallet has its own 24-word BIP-39 seed phrase that the user can export, and an address on 11 networks: Ethereum, BNB Smart Chain, Polygon, Arbitrum, Optimism, Base, Avalanche C-Chain, TRON, Bitcoin, Litecoin and TON (one EVM address serves all seven EVM networks). The API reads live balances, tracks deposits to the network's confirmation count, sends transfers with idempotency keys and statuses, and delivers HMAC-SHA256 signed webhooks. An API key can carry a daily USD limit and an address-book-only rule: a transfer that breaks one waits for the owner's approval with a 2FA code. Recipients and deposit senders are screened against the OFAC SDN sanctions list. Swaps between a wallet's own assets run through THORChain and LI.FI, with SideShift as a fallback. A wallet rule forwards or swaps each confirmed deposit of a coin by itself, within limits set in the dashboard behind a 2FA code. A token transfer from an address that holds none of the network's coin can pay its network fee in the token: kryptr.io delivers the coin to the address and then takes the fee in USDT or USDC. A test mode on the same API gives every account separate test wallets, pk_test_ keys and webhooks on a simulated network, with deposits made by one call. AI agents use the wallets through the MCP server kryptr-mcp, under the same per-key limits. No blockchain node has to be run. Not a payment processor: no invoices, checkout pages, pooled balances, platform sweeps or merchant payouts. Source: https://kryptr.io/ · Facts: https://kryptr.io/facts.json · API: https://kryptr.io/openapi.json ## Your seed. Your keys. Your coins. An exchange account or a custodial wallet gives you a balance in someone else's books. A kryptr wallet gives you the seed phrase itself. - **Your own seed for every wallet.** Each wallet is created with its own 24-word BIP-39 phrase. Export it from the dashboard or the API and keep it offline: the keys of every address in the wallet come from those words. - **Funds stay on your addresses.** Coins never move to a pooled account or a platform treasury. What the blockchain shows on your wallet's addresses is your balance, nothing to reconcile. - **Leave whenever you want.** Standard BIP-44 / BIP-84 derivation paths, so the phrase restores the same addresses in common multi-chain wallets such as Trust Wallet. You never need our permission to move your coins. How the API signs for you. To send the transfers you order through the API, kryptr keeps a copy of each seed encrypted with AES-256-GCM. Exporting a seed in the dashboard requires your account password and a TOTP code; over the API only a key you gave the seed-export scope can do it. Every export is written to an audit log and announced by a webhook, so you know about it at once. ## Everything a wallet API should do - **Unlimited wallets.** Create a wallet per customer, project or team with one call. Delete the ones you no longer need: a deleted wallet keeps its seed, so nothing is ever lost. - **One seed, eleven networks.** Every wallet gets an address on Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, TRON, Bitcoin, Litecoin and TON. One EVM address serves all seven EVM networks. - **Live balances.** Per-asset balances read from the chain: each network's native coin plus USDT and USDC where the network has them. - **Deposits with statuses.** Incoming transfers are tracked from first sight to the network's confirmation count, with an event at each step. - **Transfers with statuses.** Send coins and tokens from a wallet through the API, follow each transfer until it is confirmed on chain. Idempotency keys make retries safe. - **Webhooks and callbacks.** HMAC-SHA256 signed events to your endpoints, plus a callback URL per wallet. Failed deliveries are retried and logged. - **Spending limits and approvals.** Give an API key a daily limit in US dollars and an address book. A transfer that breaks either waits until you approve it with a 2FA code, so a leaked key or a runaway script cannot empty a wallet. - **Sanctions screening both ways.** Recipients and deposit senders are checked against the OFAC SDN list, updated daily. Sending to a listed address is refused; a deposit from one is flagged with its own webhook. - **Swaps inside the wallet.** Exchange one asset of a wallet for another through THORChain or LI.FI, with SideShift as a fallback. The payout lands on the same wallet: no exchange account, no KYC on our side. - **Wallet tools for AI agents (MCP).** Connect Claude, Cursor or any MCP client to your wallets with kryptr-mcp and a key of its own. The agent reads balances, sends and swaps within the key's daily limit and address book, which it cannot change; anything beyond them waits for your 2FA approval. - **Rules that act on deposits.** Tell a wallet what to do with a confirmed deposit: forward it to an address or swap it into another coin of the wallet. A rule has a minimum, an amount it always keeps and an optional 24-hour limit. You make it and switch it on with a 2FA code; every run is logged, and a webhook reports each transfer or swap a rule starts. - **Network fee paid in the token.** Send USDT or USDC from an address that holds no TRX, ETH or BNB. kryptr.io delivers the coin for the network fee to the address, the transfer goes out, and the fee is then taken in the token you send. The fee is shown before you confirm, and a transfer never costs more than the limit you set. - **Test mode.** Build and test against the real API with no real coins. In test mode an account has separate test wallets, pk_test_ keys and webhooks on a simulated network: one call makes a deposit, and transfers, swaps and rules run as they do live, with livemode: false in every webhook. ## Frequently asked questions ### What is kryptr.io? kryptr.io is a multi-currency crypto wallet managed over an API. You create any number of wallets, each with its own 24-word seed phrase and an address on Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, TRON, Bitcoin, Litecoin and TON, and you read balances, receive deposits and send transfers through a REST API with signed webhooks. ### Who holds the seed phrase? You do. Every wallet has its own BIP-39 seed phrase that you can export from the dashboard (password plus 2FA code) or over the API with a key that has the seed-export scope. kryptr keeps an AES-256-GCM encrypted copy only to sign the transfers you order. Every export is logged and announced by a webhook. ### Which networks and coins are supported? Bitcoin (BTC), Ethereum (ETH, USDT, USDC), BNB Smart Chain (BNB, USDT, USDC), Polygon (POL, USDT, USDC), Arbitrum One (ETH, USDT, USDC), Optimism (ETH, USDT, USDC), Base (ETH, USDC), Avalanche C-Chain (AVAX, USDT, USDC), TRON (TRX, USDT), Litecoin (LTC) and TON (Gram, the native coin). That is 25 assets on 11 networks; on Arbitrum and Optimism USDT is Tether's USDT0. ### Can I restore a kryptr wallet in another wallet app? Yes. kryptr uses the standard derivation paths that Trust Wallet and wallet-core use (m/44'/60'/0'/0/0 for every EVM network, m/44'/195'/0'/0/0 for TRON, m/84'/0'/0'/0/0 for Bitcoin, m/84'/2'/0'/0/0 for Litecoin, m/44'/607'/0' for TON), so the exported phrase opens the same addresses there. ### Do I need to run a blockchain node? No. kryptr reads balances and transactions from public chain APIs and watches every wallet's addresses for you, so there is nothing to install, sync or keep online. ### How do I find out that a deposit arrived? kryptr sends a deposit.detected event when an incoming transfer appears on chain and deposit.confirmed when it reaches the network's confirmations: Ethereum 12, BSC 15, Polygon 20, Arbitrum 40, Optimism 10, Base 10, Avalanche 3, TRON 19, Bitcoin 2, Litecoin 6, TON 1. Events are signed with HMAC-SHA256 and retried up to 12 times. ### How is kryptr priced? kryptr is prepaid and usage-based: $0.03 a month for each active wallet (watched on all 11 networks), $0.02 for each deposit of $1 or more detected and delivered as a webhook, and $0.05 for each transfer sent through the API. Balance reads and other requests are free within the rate limits. A trial covers 3 active wallets and 20 deposits a month; beyond it the minimum is $29 a month, spent on the same usage. There is no fixed subscription and no percentage of the amounts you hold or move; network fees of a transfer are paid by the wallet itself in the network's own coin. Billing is not switched on yet: during the beta everything is free. ### Can I limit what an API key or an AI agent sends? Yes. A key that can send funds can carry a daily limit in US dollars (its transfers and swaps of the last 24 hours) and an «address book only» rule. A transfer that breaks either waits until you approve or reject it with a 2FA code; a swap over the limit is refused. A new address-book entry becomes usable after 24 hours. ### Are addresses checked against sanctions lists? Yes. The digital-currency addresses of the US Treasury's OFAC SDN list are loaded daily. Sending to a listed address is refused, and a deposit from a listed sender is flagged and announced by a deposit.flagged webhook. A match means only that the address is on that list. ### Can an AI agent use a kryptr wallet? Yes, through the MCP server kryptr-mcp, which runs on your machine: npx -y kryptr-mcp with the agent's own API key in its environment. The agent reads balances and deposits, sends with an idempotency key and swaps; it cannot create or delete wallets or see seed phrases. The key's scopes, daily limit in US dollars and address book bound what it can do: a transfer beyond them waits for your 2FA approval. KRYPTR_MCP_READ_ONLY=1 leaves out every tool that sends. ### Can a wallet forward or swap deposits by itself? Yes, with a wallet rule. A rule names a coin and what the wallet does when a deposit of it is confirmed: send it to an address you set, or swap it into another coin of the same wallet. It has a smallest amount, an amount that always stays on the address and an optional limit per 24 hours. Rules are made and switched on only in the dashboard with a 2FA code; an API key can read them and their log but cannot make or change one. A deposit from a sender on the OFAC SDN list starts no rule, and later runs leave its amount on the address until you switch the rule off and on again. A swap rule switches itself off when its swap is refunded or fails. A run that started its transfer or swap sends a rule.executed webhook, a failed one rule.failed. ### Can I send USDT without TRX or ETH for the network fee? Yes. When the address holds too little of the network's coin, a transfer made with fee_in_asset (a switch in the dashboard's Send form) pays the network fee in the token. kryptr.io's fee wallet delivers the coin the transfer needs to your address, the transfer goes out once that delivery is confirmed, and the fee is then taken from the same address in the token. The fee covers the network cost of the delivery, of your transfer and of the fee transfer, plus a markup; POST /api/v1/wallets/{id}/transfers/fee-quote tells it before you send, and max_fee sets the most a transfer may cost: a higher fee is refused with fee_changed. It works for USDT on TRON, for USDT and USDC on Ethereum, BNB Smart Chain, Polygon, Arbitrum, Optimism and Avalanche, and for USDC on Base. If the coin's delivery fails, nothing is charged; once it is delivered the fee is due, also when the transfer itself then fails on the network. Wallet rules and swaps pay their fees in the network's coin. ### Can I test the API without real coins? Yes. Every account has a test mode on the same server, api.kryptr.io, kept apart from live data: its own wallets, API keys, webhooks, address book and rules. Switch the dashboard to Test mode and make a pk_test_ key there. POST /api/v1/wallets/{id}/test-deposits credits a test wallet: deposit.detected comes at once and deposit.confirmed 5 to 15 seconds later. Test wallets send, swap and run rules on a simulated network where nothing is signed or broadcast, and every webhook carries livemode: false. A test key works only on test data and a live key only on live data. The real networks' fees, confirmation times and errors are not simulated. ### Is kryptr a payment processor? No. kryptr is a wallet with an API and webhooks: no invoices, checkout pages or pooled merchant balances. Funds stay on each wallet's own addresses. ### How are API requests protected? Every request to the merchant API is signed with HMAC-SHA256 over the timestamp, method, path and body; a signature is accepted once and only within 5 minutes. API keys carry scopes (read, write, transfer, seed export), and every account signs in with a mandatory TOTP second factor. --- # Crypto wallet API: a developer's guide to holding crypto through an API URL: https://kryptr.io/blog/crypto-wallet-api/ Updated: 2026-11-30 What a crypto wallet API does, how it differs from an exchange API, and how to create wallets, read balances and move funds on 11 networks. A **crypto wallet API** lets your software do what a person does in a wallet app: create a wallet, show its addresses, read balances, notice incoming coins and send coins out. The difference is scale and automation. An app that holds crypto for many customers, projects or teams needs hundreds or thousands of wallets, and it needs to react to every deposit without a human watching a screen. This guide explains what such an API has to provide, which design choices matter, and how the kryptr.io API implements each step. ## What a wallet API is, and what it is not There are three kinds of crypto APIs that are easy to confuse: | Kind | What you get | Who controls the coins | |---|---|---| | Exchange account API | A balance in the exchange's books, trading, withdrawals | The exchange | | Payment processor API | Invoices, checkout pages, settlement to your account | The processor, until it pays you out | | Wallet API | Wallets with their own seed phrases and on-chain addresses | Whoever holds the seed phrase | A wallet API is the closest thing to running your own wallets. With kryptr.io every wallet has its own 24-word BIP-39 seed phrase that you can export; the coins sit on that wallet's own addresses on the blockchain, not in a pooled account. kryptr is **not** a payment processor: there are no invoices, no checkout pages and no merchant payouts. ## One wallet, eleven networks When you create a wallet, kryptr generates a fresh seed phrase and derives one address per network from it: | Network | Assets | Confirmations before a deposit counts | |---|---|---| | Ethereum | ETH, USDT, USDC | 12 | | BNB Smart Chain | BNB, USDT, USDC | 15 | | Polygon | POL, USDT, USDC | 20 | | Arbitrum One | ETH, USDT (USDT0), USDC | 40 | | Optimism | ETH, USDT (USDT0), USDC | 10 | | Base | ETH, USDC | 10 | | Avalanche C-Chain | AVAX, USDT, USDC | 3 | | TRON | TRX, USDT | 19 | | Bitcoin | BTC | 2 | | Litecoin | LTC | 6 | | TON | TON | 1 | The seven EVM networks (Ethereum, BNB Smart Chain, Polygon, Arbitrum One, Optimism, Base and Avalanche C-Chain) share one address, because they use the same key format and the same derivation path. That is 25 assets on 11 networks behind one API, and no blockchain node to install, sync or keep online: kryptr reads balances and transactions from public chain APIs. ## Authentication: signed requests Every call to the merchant API (`/api/v1/*`) carries three headers: - `X-API-Key`: your public key, `pk_live_…`; - `X-Timestamp`: the current time in RFC 3339, with milliseconds; - `X-Signature`: hex `HMAC-SHA256(secret, "...")`. The server accepts a signature only within 5 minutes of its clock and only **once**: a replayed request gets `401 replayed_request`. A stolen request log is therefore useless to an attacker, and the secret key never travels over the wire. API keys carry scopes, so each of your services gets only what it needs: | Scope | Allows | |---|---| | `wallets:read` | list and read wallets, balances, deposits, transfers | | `wallets:write` | create, rename and delete wallets | | `wallets:transfer` | send funds from a wallet | | `wallets:mnemonic` | export a wallet's seed phrase | A key created without scopes gets every scope except `wallets:mnemonic`. Seed export is opt-in. Here is a signed request in Node.js: ```js import { createHmac } from "node:crypto"; const PUBLIC = process.env.KRYPTR_PUBLIC_KEY; const SECRET = process.env.KRYPTR_SECRET_KEY; async function kryptr(method, path, body) { const ts = new Date().toISOString(); // 2026-11-30T10:15:30.123Z const raw = body ? JSON.stringify(body) : ""; const sig = createHmac("sha256", SECRET).update(`${ts}.${method}.${path}.${raw}`).digest("hex"); const res = await fetch(`https://kryptr.io${path}`, { method, headers: { "X-API-Key": PUBLIC, "X-Timestamp": ts, "X-Signature": sig, "Content-Type": "application/json", }, body: raw || undefined, }); return res.json(); } ``` ## Create a wallet ```js const wallet = await kryptr("POST", "/api/v1/wallets", { name: "Customer 42", external_id: "user-42", callback_url: "https://api.example.com/kryptr/callback", }); ``` The response lists the wallet's addresses, each with its network, derivation path and assets. `external_id` is your own reference and doubles as an idempotency key: repeating the call with the same `external_id` returns the existing wallet with `200` instead of creating a second one. That makes "create a wallet for this user" safe to retry after a timeout. ## Read balances `GET /api/v1/wallets/{id}/balances` reads every asset's balance from the chains at the moment you ask; there is no cache to go stale. If one network's API fails, that network is listed with an `error` field and the rest still come back. ## Receive deposits Give the user an address from the wallet. kryptr watches every address of every live wallet and sends two events per incoming transfer: 1. `deposit.detected` when the transaction appears on chain; 2. `deposit.confirmed` when it reaches the network's confirmation count (or `deposit.failed` if it is dropped). Credit the user on `deposit.confirmed`. The [deposit webhooks guide](/blog/crypto-deposit-webhooks/) covers verification and retries in detail. ## Send transfers ```js await kryptr("POST", `/api/v1/wallets/${wallet.id}/transfers`, { asset_id: "USDT.tron", to_address: "TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf", amount: "25.5", }); ``` A transfer also needs an `Idempotency-Key` header (add it to the helper for this call). The API checks the address checksum and the on-chain balance, queues the transfer, and a worker signs it with the wallet's own key. The network fee is paid by the wallet itself in the network's native coin, so a wallet that sends USDT on TRON needs some TRX too. Statuses move from `pending` to `broadcasting`, `sent` and finally `confirmed` or `failed`, with a `transfer.*` event at each step. See [sending crypto safely](/blog/send-crypto-api-safely/) for the retry rules. ## The seed phrase stays yours Any wallet's 24 words can be exported: in the dashboard with your password and a TOTP code, or over the API with a key that has the `wallets:mnemonic` scope. Every export is rate limited (10 an hour), written to an audit log and announced by a `wallet.mnemonic_exported` webhook. The derivation paths are the ones Trust Wallet uses, so the phrase restores the same addresses there; the [restore guide](/blog/export-seed-restore-trust-wallet/) walks through it. ## Checklist for choosing a wallet API - Does each wallet have its own seed phrase, and can you export it? - Do funds stay on per-wallet on-chain addresses, or in a pooled balance? - Are requests signed and replay-protected, and do keys have scopes? - Are deposit and transfer events signed, retried and deduplicable by id? - Are transfers idempotent? - Which networks and tokens are covered, and how many confirmations count as final? - How is it priced? kryptr charges a prepaid balance for what the API does for you: $0.03 a month per active wallet, $0.02 per detected deposit of $1 or more and $0.05 per transfer, with a $29 monthly minimum spent on that usage after the free trial. Balance reads are free, and there is no fixed subscription and no percentage of the amounts you hold or move. During the beta billing is off. The full reference with a try-it-out console is at [/api-docs](/api-docs), and the machine-readable spec at [/openapi.json](/openapi.json). --- # How to receive USDT TRC-20 through an API, with webhooks URL: https://kryptr.io/blog/receive-usdt-trc20-api/ Updated: 2026-11-30 Accept USDT on TRON in your app: a wallet per user, deposit events, 19 confirmations, crediting once and paying for energy with TRX. USDT on TRON (TRC-20) is the most common way people send stablecoins between wallets and exchanges. If your app needs to accept it, you need four things: an address per user, a way to learn that coins arrived, a rule for when a deposit is final, and a way to move the funds later. This guide builds all four with the kryptr.io API. ## 1. Create a wallet per user One wallet per customer keeps the accounting trivial: whatever arrives on that wallet's TRON address belongs to that customer. Use your own user id as `external_id`, so a retried request returns the same wallet instead of creating a second one. ```bash POST /api/v1/wallets {"name": "Customer 42", "external_id": "user-42", "callback_url": "https://api.example.com/kryptr/callback"} ``` The response contains one address per network. The TRON entry looks like this: ```json { "network": "tron", "address": "TEcjzW2joBQo4t7Ek23TXDeCTLZzsqZK7o", "derivation_path": "m/44'/195'/0'/0/0", "assets": ["TRX.tron", "USDT.tron"] } ``` Show the user that `T…` address and say clearly that it is for **USDT on TRON**. The same wallet also has an EVM address for USDT on Ethereum, BNB Smart Chain and Polygon; a user who picks the wrong network on their side sends coins to a different chain, so name the network next to every address you display. Every request is signed; the [wallet API guide](/blog/crypto-wallet-api/) has the signing code. ## 2. Learn about the deposit from a webhook kryptr watches every live wallet's addresses. When a USDT transfer to the TRON address shows up on chain, it sends `deposit.detected` to your webhook endpoints and to the wallet's `callback_url`: ```json { "id": "6f1c…", "type": "deposit.detected", "created_at": "2026-11-30T10:21:07Z", "data": { "wallet_id": "…", "external_id": "user-42", "asset_id": "USDT.tron", "network": "tron", "tx_hash": "…", "from_address": "T…", "to_address": "TEcjzW2joBQo4t7Ek23TXDeCTLZzsqZK7o", "amount": "50", "confirmations": 1, "confirmations_required": 19, "status": "detected" } } ``` `external_id` is echoed back, so you can find the user without a lookup table. Show the deposit as "incoming" in your UI at this point, but do not credit it yet. ## 3. Credit on confirmation, exactly once When the transaction reaches 19 confirmations (TRON's solidified block), kryptr sends `deposit.confirmed` with the same deposit fields and `status: "confirmed"`. That is the moment to credit the user. Three rules make crediting safe: 1. **Verify the signature** of every delivery before you trust it (`X-CryptoEqu-Signature`, an HMAC-SHA256 of the timestamp and the body). 2. **Deduplicate by the deposit id.** A delivery that timed out on your side is retried, up to 12 times with exponential backoff, and the event keeps its `id`. Store the deposit id with a unique constraint and credit inside the same database transaction. 3. **Check the asset.** Credit `USDT.tron` as USDT and `TRX.tron` as TRX; never assume the asset from the address alone. The [webhooks guide](/blog/crypto-deposit-webhooks/) has verification code in Node.js and Python. If you missed events, for example during an outage longer than the retry window, you can read the history at any time: ```bash GET /api/v1/wallets/{id}/deposits?network=tron ``` Each deposit carries its status (`detected`, `confirmed` or `failed`), so reconciling is a loop over that list. ## 4. Move the funds out: TRX pays for energy Funds stay on the user's own wallet address; nothing is swept to a pooled account. When you want to move USDT, order a transfer from that wallet: ```bash POST /api/v1/wallets/{id}/transfers Idempotency-Key: payout-2026-11-30-0001 {"asset_id": "USDT.tron", "to_address": "T…", "amount": "50"} ``` On TRON a token transfer consumes **energy** and **bandwidth**. A wallet that has no staked TRX pays for them by burning TRX from its own balance. The amount depends on the network's current prices and on whether the recipient already holds USDT; in one of our own transfers in November 2026, sending USDT burned 130,285 energy, about 13 TRX. So before a wallet can send USDT, it needs TRX on the same address. Keep a TRX float on wallets you plan to send from, or send TRX to the address first. Two more TRON specifics: - A brand-new TRON address is not "activated" until it receives TRX or a token; sending TRX to an unused address costs a small activation fee paid by the sender. - A sent TRON transaction that is not included on chain within 15 minutes is marked `failed` with the reason "not included on chain before it expired", so a stuck transfer never stays pending forever. ## Summary | Step | API | |---|---| | Address per user | `POST /api/v1/wallets` with `external_id` | | Deposit seen | `deposit.detected` event | | Deposit final | `deposit.confirmed` after 19 confirmations | | Reconcile | `GET /api/v1/wallets/{id}/deposits?network=tron` | | Send out | `POST /api/v1/wallets/{id}/transfers` with `Idempotency-Key`, TRX on the address for energy | The same flow works for USDT and USDC on Ethereum, BNB Smart Chain and Polygon; only the confirmation counts (12, 15 and 20) and the fee coin (ETH, BNB, POL) change. The [USDT networks comparison](/blog/usdt-networks-compared/) helps you decide which networks to offer. --- # BIP-39 seed phrases and HD wallets explained for developers URL: https://kryptr.io/blog/bip39-hd-wallets/ Updated: 2026-11-30 How 24 words become keys and addresses on Bitcoin, EVM, TRON, Litecoin and TON: BIP-39, BIP-32, BIP-44/84 paths, SLIP-10 and why paths matter. Every modern crypto wallet, from a hardware device to a mobile app, starts from the same idea: a short list of words from which every key can be recomputed. Understanding how that works tells you what you really own when someone hands you a seed phrase, and why two wallets can show different addresses for the same words. ## From randomness to 24 words (BIP-39) [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) turns random bits into words a person can write down: 1. Generate 256 bits of entropy from a cryptographically secure random source. 2. Append a checksum: the first 8 bits of the SHA-256 of the entropy. That makes 264 bits. 3. Split them into 24 groups of 11 bits. Each group is a number from 0 to 2047, an index into a fixed list of 2048 English words. The checksum lets a wallet reject a mistyped phrase: change one word and the last word no longer matches. A 12-word phrase works the same way with 128 bits of entropy. The words then become a 512-bit **seed** through PBKDF2-HMAC-SHA512 with 2048 iterations, using the string `"mnemonic"` plus an optional passphrase as the salt. The passphrase matters: the same 24 words with a different passphrase give a completely different wallet. kryptr wallets use **no passphrase**, so the words alone restore them. ## From the seed to a tree of keys (BIP-32) [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) derives a master private key and chain code from the seed, then any number of child keys from it. Every key has an index, and a path such as `m/44'/60'/0'/0/0` names one key in the tree: - `m` is the master key; - each `/n` is a child; an apostrophe marks a **hardened** child, which cannot be derived from the parent's public key alone; - the last numbers usually pick the account, the change branch and the address index. Because the whole tree is a deterministic function of the seed, backing up the seed backs up every key that will ever be derived from it. That is what "HD" (hierarchical deterministic) means. ## Paths per network (BIP-44, BIP-84) [BIP-44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) fixes the meaning of the first levels: `m / purpose' / coin_type' / account' / change / index`. The coin type comes from the [SLIP-44](https://github.com/satoshilabs/slips/blob/master/slip-0044.md) registry: 0 for Bitcoin, 60 for Ethereum, 195 for TRON, 2 for Litecoin, 607 for TON. These are the paths kryptr uses for each wallet: | Network | Path | Address format | |---|---|---| | Ethereum, BNB Smart Chain, Polygon, Arbitrum One, Optimism, Base and Avalanche C-Chain | `m/44'/60'/0'/0/0` | `0x…`, one address for all seven | | TRON | `m/44'/195'/0'/0/0` | `T…` | | Bitcoin | `m/84'/0'/0'/0/0` | native SegWit `bc1q…` (BIP-84) | | Litecoin | `m/84'/2'/0'/0/0` | native SegWit `ltc1…` (BIP-84) | | TON | `m/44'/607'/0'` | wallet v4r2, non-bounceable `UQ…` | The seven EVM networks share one address because they use the same curve (secp256k1), the same address format and coin type 60. TRON uses the same curve but its own coin type and its own address encoding, so its address is different. Bitcoin and Litecoin use purpose 84 instead of 44: [BIP-84](https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki) marks native SegWit addresses, which are cheaper to spend from than legacy ones. ## ed25519 and SLIP-10 (TON) TON keys use the ed25519 curve, not secp256k1. BIP-32's non-hardened derivation does not work on ed25519, so the [SLIP-10](https://github.com/satoshilabs/slips/blob/master/slip-0010.md) scheme is used, with every level hardened: `m/44'/607'/0'`. The key then controls a TON wallet contract; the contract version (v4r2 for kryptr) is part of the address, so the same key in a v3 or v5 contract would show a different address. ## Why the path decides who can restore you A seed phrase is only half of a backup. The other half is the path and, for TON, the contract version. Two wallet apps that read the same 24 words but use different paths will show different addresses, and the coins will seem to be missing. That is the most common cause of "I restored my phrase and my balance is zero". kryptr uses the paths Trust Wallet and Trust's open-source [wallet-core](https://github.com/trustwallet/wallet-core) use, so an exported kryptr phrase opens the same addresses there. The export response lists the paths explicitly, so you can check them against any other wallet before you rely on it. The [restore guide](/blog/export-seed-restore-trust-wallet/) shows the steps. ## One seed per wallet, not one master seed for everyone Some custodial services derive every customer's address from one platform master seed. That is efficient for the provider but means no customer can ever get their own phrase: it would expose everybody's keys. kryptr generates a **separate** BIP-39 phrase for each wallet. That is what makes export possible: handing you the 24 words of your wallet reveals nothing about any other wallet. The phrase is stored encrypted with AES-256-GCM and used only to sign the transfers you order. ## Practical rules - Generate entropy only from a secure random source; never derive a phrase from a password or user data. - Never log a phrase, never put it in a URL, and never send it in an email or chat. - Store a backup offline. Anyone who reads the 24 words controls every address derived from them. - Record the path and, for TON, the contract version together with the phrase. - Before moving real funds to a restored wallet, compare its addresses with the original ones. --- # Crypto deposit webhooks: signatures, confirmations and retries URL: https://kryptr.io/blog/crypto-deposit-webhooks/ Updated: 2026-11-30 Handle crypto deposit webhooks right: verify the HMAC-SHA256 signature, dedupe by event id, credit on confirmation. Node.js and Python code. A webhook is the cheapest way to learn that coins arrived: instead of polling every address, your server is called when something happens. It is also the easiest place to lose money. An unverified endpoint can be fed fake deposits, a retried delivery can credit a user twice, and crediting too early can credit coins that a chain reorganisation later takes back. This guide covers each of these with the events kryptr.io sends. ## The events | Event | When | |---|---| | `deposit.detected` | an incoming transfer to a wallet appeared on chain | | `deposit.confirmed` | it reached the network's confirmation count | | `deposit.failed` | it failed or was dropped from the chain | | `transfer.created` | a transfer you ordered was queued | | `transfer.sent` | it was broadcast; `tx_hash` is set | | `transfer.confirmed` | it reached the network's confirmation count | | `transfer.failed` | it was rejected, failed on chain or expired | | `wallet.created`, `wallet.deleted` | a wallet was created or soft-deleted | | `wallet.mnemonic_exported` | a wallet's seed phrase was exported | Events go to every webhook endpoint you registered in the dashboard (each signed with that endpoint's own secret) and to the `callback_url` of the wallet or transfer they belong to (signed with your account's callback secret). Callback URLs must use `https` and resolve to public addresses. Each delivery is a `POST` with a JSON body: ```json {"id": "…", "type": "deposit.confirmed", "created_at": "2026-11-30T10:24:31Z", "data": { … }} ``` and three headers: - `X-CryptoEqu-Event`: the event type; - `X-CryptoEqu-Timestamp`: the RFC 3339 time of this delivery attempt; - `X-CryptoEqu-Signature`: hex `HMAC-SHA256(secret, ".")`. ## Step 1: verify the signature over the raw body Compute the HMAC over the **exact bytes** you received, not over a re-serialised JSON object: parsing and printing JSON again can reorder keys or change number formats, and the signature will not match. Compare in constant time. Node.js (Express): ```js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const app = express(); const SECRET = process.env.KRYPTR_WEBHOOK_SECRET; app.post("/kryptr/webhook", express.raw({ type: "application/json" }), (req, res) => { const ts = req.get("X-CryptoEqu-Timestamp") ?? ""; const sig = req.get("X-CryptoEqu-Signature") ?? ""; const expected = createHmac("sha256", SECRET).update(`${ts}.`).update(req.body).digest("hex"); const valid = sig.length === expected.length && timingSafeEqual(Buffer.from(sig), Buffer.from(expected)); const fresh = Math.abs(Date.now() - Date.parse(ts)) < 5 * 60 * 1000; if (!valid || !fresh) return res.sendStatus(401); const event = JSON.parse(req.body.toString("utf8")); handle(event); // see step 3 res.sendStatus(200); }); ``` Python (Flask): ```python import hmac, hashlib, json, os from datetime import datetime, timezone from flask import Flask, request, abort app = Flask(__name__) SECRET = os.environ["KRYPTR_WEBHOOK_SECRET"].encode() @app.post("/kryptr/webhook") def webhook(): ts = request.headers.get("X-CryptoEqu-Timestamp", "") sig = request.headers.get("X-CryptoEqu-Signature", "") expected = hmac.new(SECRET, ts.encode() + b"." + request.get_data(), hashlib.sha256).hexdigest() if not hmac.compare_digest(sig, expected): abort(401) sent = datetime.fromisoformat(ts.replace("Z", "+00:00")) if abs((datetime.now(timezone.utc) - sent).total_seconds()) > 300: abort(401) handle(json.loads(request.get_data())) return "", 200 ``` ## Step 2: reject stale deliveries The timestamp is part of the signed string, so it cannot be changed without breaking the signature. Rejecting deliveries older than a few minutes stops an attacker who captured one valid request from replaying it later. Retries are not affected: every attempt is signed again with a fresh timestamp. ## Step 3: deduplicate, then act If your endpoint does not answer `2xx` in time, kryptr retries the delivery with exponential backoff, up to 12 attempts. A slow response that your server did process will therefore arrive again. Two ids protect you: - the **event id** (`id`) stays the same across retries of one event; - the **deposit id** (`data.id`) stays the same across `deposit.detected` and `deposit.confirmed`. Credit a deposit at most once with a unique constraint on the deposit id: ```sql CREATE TABLE credited_deposits ( deposit_id uuid PRIMARY KEY, user_id text NOT NULL, asset_id text NOT NULL, amount numeric NOT NULL, credited_at timestamptz NOT NULL DEFAULT now() ); -- In one transaction: INSERT … ON CONFLICT DO NOTHING; credit the balance only if a row was inserted. ``` Answer `200` quickly and do slow work in a queue; a handler that takes too long is retried even though it succeeded. ## Step 4: credit on confirmation, not on detection A transaction that has just appeared can still disappear: a block can be replaced, or a transaction can fail. Each network has a depth after which kryptr treats a deposit as final: | Network | Confirmations | |---|---| | Ethereum | 12 | | BNB Smart Chain | 15 | | Polygon | 20 | | Arbitrum One | 40 | | Optimism | 10 | | Base | 10 | | Avalanche C-Chain | 3 | | TRON | 19 (solidified) | | Bitcoin | 2 | | Litecoin | 6 | | TON | 1 | Use `deposit.detected` to show "incoming" in your interface and `deposit.confirmed` to credit. On `deposit.failed`, show the deposit as failed and credit nothing. Amounts are decimal strings in whole units (`"50"`, `"0.015"`). Parse them with a decimal type, never a binary float. ## Step 5: reconcile Webhooks are a notification channel, not the source of truth. After an outage longer than the retry window, or simply once a day, compare your records with the API: - `GET /api/v1/wallets/{id}/deposits` lists a wallet's incoming transfers with their status; - the dashboard's webhook delivery log shows each delivery's attempts, last HTTP status and error. A reconciliation loop that credits only confirmed deposits not yet in `credited_deposits` makes missed events harmless. ## Checklist - Verify `X-CryptoEqu-Signature` over the raw body, in constant time. - Reject timestamps older than 5 minutes. - Deduplicate by event id and deposit id; credit inside one transaction. - Credit on `deposit.confirmed` only; check `asset_id` and `amount`. - Answer `2xx` fast; queue slow work. - Reconcile against `GET /api/v1/wallets/{id}/deposits`. --- # Sending crypto through an API safely: idempotency, statuses and unknown outcomes URL: https://kryptr.io/blog/send-crypto-api-safely/ Updated: 2026-12-01 Send crypto from your backend without paying twice: idempotency keys, transfer statuses, address checks, fee coins and unknown broadcasts. Receiving crypto is forgiving: a missed webhook can be reconciled later. Sending is not. A blockchain transaction cannot be recalled, so a retry that creates a second transfer pays twice, and a transfer that looks failed but was in fact broadcast can be paid again by hand. This guide explains how the kryptr.io transfer API is built to avoid both, and what your code has to do. ## The request ```bash POST /api/v1/wallets/{id}/transfers Idempotency-Key: withdrawal-81723 Content-Type: application/json {"asset_id": "USDT.bsc", "to_address": "0x…", "amount": "120.5"} ``` - `asset_id` is an asset of the wallet's networks, such as `ETH.ethereum`, `USDT.tron` or `LTC.litecoin`. `GET /v1/wallet-assets` lists them. - `amount` is a decimal string in whole units, with at most the asset's decimals. - `callback_url` is optional; transfer events go there in addition to your webhook endpoints, and it defaults to the wallet's own callback URL. - The API key needs the `wallets:transfer` scope. ## Idempotency keys: one key, one transfer `Idempotency-Key` is required. Generate it from **your** record of the payment (a withdrawal id), not randomly per HTTP attempt: - the first request with a key creates the transfer and answers `201`; - a repeat with the same key and the same parameters answers `200` with the **first** transfer, without sending anything new; - a repeat with the same key and different parameters answers `409 idempotency_conflict`. So the rule for your code is simple: if a transfer request times out or the connection drops, send exactly the same request again with the same key. You either get the transfer that was created, or it is created now. You never get two. ## Checks before anything is queued The API refuses a transfer up front when it cannot succeed: - `400 invalid_address`: the address fails its network's check (the EIP-55 checksum when the address is mixed case, the TRON, Bitcoin and Litecoin address checksums, the CRC of a TON friendly address); - `400 invalid_amount` or `unsupported_asset`; - `422 insufficient_funds`: the on-chain balance is too low; - `409 wallet_deleted`: a deleted wallet cannot send; - `422 sanctioned_address`: the recipient is on the OFAC SDN list; - `502 network_unavailable`: the network's API could not be read, so the balance could not be checked. ## The network fee comes from the wallet Every transfer pays its network fee in the network's native coin, from the same wallet: ETH on Ethereum, Arbitrum, Optimism and Base, BNB on BNB Smart Chain, POL on Polygon, AVAX on Avalanche, TRX on TRON, BTC on Bitcoin, LTC on Litecoin, TON on TON. A wallet holding only USDT cannot send it. Keep some native coin on wallets you send from; on TRON, a USDT transfer without staked energy burns TRX, about 13 TRX in one of our own transfers in November 2026. ## The status machine | Status | Meaning | |---|---| | `awaiting_approval` | held by the API key's policy (daily limit or address book) until you approve it with a 2FA code; approval moves it to `pending`, rejection to `failed` | | `pending` | queued, not yet signed | | `broadcasting` | a worker is signing and sending it | | `sent` | on the network; `tx_hash` is set | | `confirmed` | reached the network's confirmation count (final) | | `failed` | rejected, failed on chain or expired (final); `failure_reason` says why | Each step sends an event (`transfer.created`, `transfer.sent`, `transfer.confirmed`, `transfer.failed`) and `GET /api/v1/transfers/{id}` returns the current state. Treat only `confirmed` as paid and only `failed` as "not paid"; anything else is in progress. ## One transfer in flight per address A worker sends at most one transfer per address at a time. Account-based chains need it: an Ethereum transaction carries a nonce, a TON wallet a sequence number, and two transfers signed in parallel can collide. On Bitcoin and Litecoin the next transfer has to spend the previous transfer's change. So a batch of payouts from one wallet goes out one after another; to pay many recipients in parallel, send from several wallets. ## When the outcome is unknown The dangerous moment is the broadcast itself. A node can accept a transaction and then the connection drops before it answers. Was it sent? kryptr treats that case conservatively: - if the error shows the transaction might have reached the network, the transfer is recorded as `sent` with its hash, and the confirmation checker settles it from the chain: `confirmed` if it lands, `failed` if the chain reports it failed; - on TRON and TON a transaction has an expiry; one that is not on chain 15 minutes after sending is marked `failed` with the reason "not included on chain before it expired"; - a transfer left in `broadcasting` by a crash is **never retried automatically**, so the same funds are never signed and sent twice. For your code that means: 1. Never create a new transfer because an old one "looks stuck". Read its status first. 2. A transfer in `broadcasting` for a long time needs a human look at the chain, not a resend. 3. Retry only with the same `Idempotency-Key`; a new key is a new payment. ## Protect the key that can send - Give `wallets:transfer` only to the service that sends, and keep read-only keys elsewhere. - Creating a key with `wallets:transfer` or `wallets:mnemonic` requires the account password and a TOTP code. - A dashboard transfer also asks for a TOTP code, and each code works once. - Every request is signed with HMAC-SHA256 and accepted once, within 5 minutes. - Give a sending key a daily limit in US dollars and an «address book only» rule: a transfer that breaks either gets the status `awaiting_approval` and waits until you approve or reject it in the dashboard with a 2FA code. A new address-book entry becomes usable after 24 hours. - A transfer to an address on the OFAC SDN list is refused with `422 sanctioned_address`, whatever the key. - For an AI agent, make a key of its own and connect it through the MCP server kryptr-mcp (`npx -y kryptr-mcp`): it signs requests on your machine, reads the key's remaining budget (`GET /api/v1/key`) and cannot change the key's limits; `KRYPTR_MCP_READ_ONLY=1` leaves out sending. ## Checklist - Derive `Idempotency-Key` from your own payment id; retry with the same key. - Keep native coin on sending wallets for fees. - Pay out on `transfer.confirmed`; mark unpaid on `transfer.failed`. - Never resend a transfer that is `sent` or `broadcasting`. - Spread parallel payouts over several wallets. - Give sending keys a daily limit and an address book; approve held transfers in the dashboard. - Give an AI agent its own limited key through kryptr-mcp. --- # Exchange API, custodial wallet service or your own seed: where your crypto really sits URL: https://kryptr.io/blog/exchange-api-vs-custodial-vs-own-seed/ Updated: 2026-12-01 Exchange API, custodial service, own nodes or a wallet API with a seed per wallet: who holds the keys, who can freeze funds, how to leave. When an app needs to hold crypto, the first technical decision is really a question of ownership: **whose keys control the coins?** Everything else, from how withdrawals work to what happens if the provider shuts down, follows from that answer. This guide compares the four common setups. ## 1. An exchange account API Many teams start with the API of an exchange account: deposit addresses, balances and withdrawals are all there, and it takes an afternoon to integrate. What you actually hold is a **balance in the exchange's books**. The deposit address belongs to the exchange; coins sent to it join the exchange's own wallets. You can withdraw only through the exchange's withdrawal process, at its fees, within its limits and subject to its compliance checks. The exchange can freeze the account, and if it fails, your balance is a claim in its insolvency. Good for: trading, converting between assets, short-term liquidity. Weak for: holding funds per customer, proving where funds are, leaving without asking. ## 2. A custodial wallet service A wallet-as-a-service provider gives you wallets and addresses through an API, often with more networks and better tooling than an exchange. The keys, however, stay with the provider. Many such services derive every address from one platform master key, which means no customer can ever receive their own seed phrase. Your funds may be on dedicated addresses, but **only the provider can sign** for them. Moving away means asking the provider to send everything out; the provider can also freeze or delay that. Good for: fast integration with compliance handled by someone else. Weak for: independence from the provider. ## 3. Your own nodes and your own keys The fully self-hosted route: run a node per chain (or rely on a node provider), generate and store keys yourself, write the deposit watcher, the transfer signer, the nonce handling, the confirmation tracking and the webhooks. You hold everything, and you also run everything: nodes to keep in sync, a key management system, monitoring, and per-chain code for every network you add. It is the most control and the most work. Good for: teams with infrastructure engineers and a reason to own every layer. Weak for: time to market and maintenance cost. ## 4. A wallet API with a seed phrase per wallet This is the model kryptr.io follows. The API does the infrastructure work (watching addresses, signing, confirmations, signed webhooks), but every wallet is created with **its own 24-word BIP-39 seed phrase** that you can export at any time. - The coins sit on the wallet's own on-chain addresses; nothing is pooled or swept. - The exported phrase restores the same addresses in Trust Wallet and other wallets that use the standard paths. - kryptr keeps an encrypted copy (AES-256-GCM) to sign the transfers you order through the API; every export is logged and announced by a webhook. - If you ever stop using kryptr, you take the phrases with you. No permission is needed to move your coins. ## Side by side | | kryptr.io | Exchange account API | Custodial wallet service | Your own nodes | |---|---|---|---|---| | Who holds the seed phrase | You: 24 words per wallet | The exchange | The provider | You | | Funds on your own on-chain addresses | Yes | No, a pooled balance | Usually pooled | Yes | | Restore in another wallet | Yes, any BIP-39 wallet with the same paths | No | No | Yes | | Can the provider freeze your coins | No: an exported seed moves them without us | Yes | Yes | No | | Nodes to run and keep in sync | None | None | None | One per chain | | Signed webhooks per wallet | Yes | Varies | Varies | You build them | | Spending limits and approvals per API key | Yes: daily USD limit, address book, 2FA approval | Withdrawal address whitelist | Varies, often on enterprise plans | You build them | | Sanctions screening of senders and recipients | Yes: OFAC SDN list, both directions | Yes, by the exchange | Usually, often a paid add-on | You build it | Columns describe each kind of service in general; individual providers differ. ## The trade-off to be honest about Holding your own seed phrase means **you** are responsible for it. If you export a phrase and store it badly, whoever finds it can move the coins, and no support desk can reverse that. A seed-per-wallet model gives you the exit and the proof of ownership; it does not remove the need to protect secrets. Export phrases only when you need them, keep them offline, and restrict the `wallets:mnemonic` scope to the one key that really needs it. ## Which one to choose - You trade or convert assets: an exchange API, for that part. - You want someone else to own the keys and the compliance: a custodial service. - You have the team to run nodes and key management: your own stack. - You want the infrastructure handled **and** the keys to stay yours: a wallet API with exportable per-wallet seeds. Many products combine them: wallets with their own seeds for customer funds, and an exchange account only for conversions. --- # USDT on TRON, Ethereum, BSC, Polygon, Arbitrum, Optimism and Avalanche: which network to accept URL: https://kryptr.io/blog/usdt-networks-compared/ Updated: 2026-11-30 USDT networks compared for apps: address formats, the coin that pays fees, confirmations, finality and the wrong-network mistakes users make. USDT is not one token but several: Tether issues it separately on many blockchains, and a USDT on TRON cannot be received on an Ethereum address any more than a euro can be paid into a bank account in yen. If your app accepts USDT, you choose which of these networks to support, and you show every user exactly which one an address belongs to. This guide compares the networks on which a kryptr.io wallet receives and sends stablecoins. It deliberately gives no fee numbers: fees change with network load and token prices, sometimes within hours. Check a network's current fee in a block explorer or with a test transfer before you rely on it. ## The networks at a glance | Network | Token standard | Address | Fee paid in | Confirmations kryptr waits for | |---|---|---|---|---| | TRON | TRC-20 | `T…` | TRX (energy and bandwidth) | 19 (solidified) | | Ethereum | ERC-20 | `0x…` | ETH (gas) | 12 | | BNB Smart Chain | BEP-20 | `0x…` | BNB (gas) | 15 | | Polygon | ERC-20 on Polygon PoS | `0x…` | POL (gas) | 20 | | Arbitrum One | USDT0 (ERC-20) | `0x…` | ETH (gas) | 40 | | Optimism | USDT0 (ERC-20) | `0x…` | ETH (gas) | 10 | | Avalanche C-Chain | ERC-20 on the C-Chain | `0x…` | AVAX (gas) | 3 | USDC is available on Ethereum, BNB Smart Chain, Polygon, Arbitrum One, Optimism, Base and Avalanche C-Chain in a kryptr wallet; Base has no Tether-issued USDT, so a kryptr wallet holds only ETH and USDC there. USDT also exists on TON as a jetton, but a kryptr wallet tracks and sends only TON's native coin for now, so USDT on TON is not covered. ## TRON (TRC-20) The network most exchanges and wallets use for USDT transfers between people. Blocks arrive every few seconds, and 19 confirmations take about a minute. Fees work differently from EVM chains: a token transfer consumes **energy** and **bandwidth**. An account can get them by staking TRX; without staked resources, the network burns TRX from the sender's balance instead. For a wallet that holds only USDT and no TRX, a transfer is impossible, so plan a TRX float on every wallet you send from. In one of our own transfers in November 2026, a USDT transfer without staked energy burned 130,285 energy, about 13 TRX; the amount depends on the network's current energy price and on whether the recipient already holds USDT. ## Ethereum (ERC-20) The original home of USDT and USDC, with the deepest liquidity and the most compatible wallets. Gas is paid in ETH and varies with demand. 12 confirmations take a few minutes. All seven EVM networks (Ethereum, BNB Smart Chain, Polygon, Arbitrum One, Optimism, Base and Avalanche C-Chain) share one address format, and a kryptr wallet has the **same** `0x…` address on all of them. That is convenient, and it is the source of the most common user mistake: a user who sends USDT on BNB Smart Chain to an address you advertised for Ethereum still reaches your wallet, because it is the same address on both networks. kryptr watches all seven networks for that address, so the deposit is seen either way; tell users which network you expect and credit by the `network` field of the deposit event. ## BNB Smart Chain (BEP-20) An EVM chain with fast blocks, popular with users who hold funds on Binance. Gas is paid in BNB. kryptr waits for 15 confirmations. ## Polygon PoS An EVM chain with low gas, paid in POL (formerly MATIC). kryptr waits for 20 confirmations before a deposit counts. ## Arbitrum One and Optimism (USDT0) Ethereum rollups with gas paid in ETH and fees far below Ethereum's. On both, the USDT contract a kryptr wallet tracks is USDT0, Tether's cross-chain deployment of USDT. Blocks are fast (about 0.25 s on Arbitrum, 2 s on Optimism), so kryptr waits for 40 and 10 confirmations, which keeps a deposit about 10 to 20 seconds behind the network's head. ## Avalanche C-Chain The EVM chain of Avalanche, with gas paid in AVAX and Tether-issued USDT. A block is final once accepted, so kryptr waits for 3 confirmations. ## TON: the native coin for now The network built around Telegram. TON addresses come in a bounceable (`EQ…`) and a non-bounceable (`UQ…`) form; kryptr shows the non-bounceable form for wallet addresses. A TON wallet is a smart contract whose version (kryptr uses v4r2) is part of the address. kryptr treats one confirmation as final on TON. USDT on TON is a jetton, which kryptr wallets do not track or send yet; the native coin is fully supported. ## Choosing what to accept - **Your users mostly withdraw from exchanges:** offer TRON and BNB Smart Chain; large exchanges, Binance included, list both as USDT withdrawal networks. - **Your users hold USDC or use DeFi:** add Ethereum, Polygon and the rollups (Arbitrum, Optimism, Base). - **Telegram-centric audience:** TON, for the native coin. - **Show the network next to every address**, in words, not only by icon. Most lost deposits are network mismatches, not technical failures. ## What a wrong network means for you | User sends | To | Result with kryptr | |---|---|---| | USDT on BSC | the wallet's Ethereum address | arrives, the same `0x…` address on BSC; seen and reported with `network: "bsc"` | | USDT on TRON | an `0x…` address | impossible: a TRON wallet will not accept a `0x…` address | | USDT on Ethereum | a `T…` address | impossible: an Ethereum wallet will not accept a `T…` address | | USDT on an unsupported network (for example Arbitrum) | the `0x…` address | lands on chain at an address the same seed controls; it is not watched, but the exported seed opens it in any EVM wallet | The last row is where per-wallet seed phrases pay off: because the user's wallet is a standard BIP-39 wallet, coins sent on an EVM network kryptr does not watch are still recoverable with the exported phrase in a wallet that supports that network. --- # Export a kryptr seed phrase and restore the wallet in Trust Wallet URL: https://kryptr.io/blog/export-seed-restore-trust-wallet/ Updated: 2026-11-30 Export a kryptr.io wallet's 24-word seed phrase, check the derivation paths and restore the same addresses in Trust Wallet or any BIP-39 wallet. Every kryptr.io wallet has its own 24-word BIP-39 seed phrase, and it is yours to take. Exporting it is how you prove that the coins on the wallet's addresses belong to you, how you move a wallet to another app, and how you keep access to your funds without depending on any service, kryptr included. This guide shows both ways to export, how to restore the wallet in Trust Wallet, and what to check before you trust the restored copy. ## Before you start - Whoever reads the 24 words controls every address of the wallet. Export in private, on a device you trust, and never paste the phrase into a website, a chat or an email. - Every export is rate limited (10 an hour per account), written to the audit log and announced by a `wallet.mnemonic_exported` webhook. If you receive that event and did not export, act at once: move the funds to a new wallet. ## Export in the dashboard 1. Open **Wallets** and select the wallet. 2. In the **Seed phrase** card, choose **Show seed phrase**. The card also shows when the phrase was last exported. 3. Enter your account password and the 6-digit code from your authenticator app, then **Show**. 4. The 24 words appear numbered, with the derivation paths below them. Write them down on paper in order, or copy them into an offline password manager. A deleted wallet keeps its seed phrase, so this works for deleted wallets too: funds left on a deleted wallet are never lost. ## Export over the API Create an API key with the `wallets:mnemonic` scope (the dashboard asks for your password and a TOTP code to create such a key; keys without explicit scopes never get it). Then: ```bash POST /api/v1/wallets/{id}/mnemonic ``` The response, sent with `Cache-Control: no-store`, looks like this: ```json { "wallet_id": "…", "mnemonic": "word1 word2 … word24", "word_count": 24, "passphrase": "", "derivation_paths": { "ethereum": "m/44'/60'/0'/0/0", "tron": "m/44'/195'/0'/0/0", "litecoin": "m/84'/2'/0'/0/0", "ton": "m/44'/607'/0'" }, "ton_wallet": "v4r2" } ``` Keep the key that has this scope separate from your everyday keys, and do not log the response body. ## What the paths mean | Network | Path | Restores as | |---|---|---| | Ethereum, BNB Smart Chain, Polygon, Arbitrum One, Optimism, Base and Avalanche C-Chain | `m/44'/60'/0'/0/0` | the first account; one `0x…` address on all seven | | TRON | `m/44'/195'/0'/0/0` | the first TRON account, `T…` | | Bitcoin | `m/84'/0'/0'/0/0` | native SegWit, `bc1q…` | | Litecoin | `m/84'/2'/0'/0/0` | native SegWit, `ltc1…` | | TON | `m/44'/607'/0'` | wallet contract v4r2, `UQ…` | The passphrase is always empty: the 24 words alone are the whole backup. These are the paths Trust Wallet and its open-source wallet-core library use, which is why the same addresses appear there. The [BIP-39 and HD wallets guide](/blog/bip39-hd-wallets/) explains the paths in depth. ## Restore in Trust Wallet The exact menu names change between app versions, but the flow is the same: 1. In Trust Wallet, add a wallet and choose to import an **existing** wallet with a **secret phrase** (recovery phrase). 2. Choose a multi-coin wallet, so that every network is restored from the phrase. 3. Enter the 24 words in order and confirm. 4. Enable the networks you use: Bitcoin, Ethereum, BNB Smart Chain, Polygon, Arbitrum, Optimism, Base, Avalanche C-Chain, TRON, Litecoin and TON. ## Check the addresses before you move funds Open each network in Trust Wallet and compare its receiving address with the addresses the kryptr dashboard shows for the wallet: - the addresses of the seven EVM networks should be the same `0x…` address; - the TRON address should match the `T…` address; - the Bitcoin address should match the `bc1q…` address and the Litecoin address the `ltc1…` address; - the TON address should match the `UQ…` address (some apps show the same address in its bounceable `EQ…` form; both forms belong to one account). If an address differs, the app used another path or another TON contract version for that network. Do not send funds to it until the addresses match; most wallets let you pick the derivation path or the TON wallet version in their advanced settings. ## Other wallets Any wallet that imports a 24-word BIP-39 phrase without a passphrase and uses the same paths restores the same addresses. For the EVM networks this covers most multi-chain wallets, since `m/44'/60'/0'/0/0` is the common default. For TRON, Bitcoin, Litecoin and TON, check the app's path and TON wallet version against the table above. ## After the restore Both copies can now sign: kryptr through the API, and the app on your phone. That is the point of a seed you own. Two practical consequences: - A transfer sent from the phone does not go through kryptr's transfer queue, but kryptr still sees the change: balances are read from the chain, so the wallet's balance in the API stays correct. - If you want to stop kryptr from signing for this wallet, move the funds to a new wallet you created elsewhere. Exporting a phrase does not revoke kryptr's encrypted copy. --- # A crypto wallet for an AI agent: MCP tools under spending limits the agent cannot change URL: https://kryptr.io/blog/ai-agent-crypto-wallet-mcp/ Updated: 2026-12-02 Connect Claude, Cursor or any MCP client to a crypto wallet with kryptr-mcp: balances, sends and swaps under a daily limit the agent cannot change. An AI agent that can pay is useful: it settles an invoice, tops up a service, rebalances a treasury. It is also the easiest way to lose a wallet. A prompt injected into a web page, a loop that repeats a tool call, or a model that misreads an amount all end in a transaction that cannot be recalled. The safe design keeps the limit outside the agent: the agent asks, and something it cannot talk to decides how much it may spend. This guide shows that design with kryptr-mcp, the MCP server of kryptr.io. ## What the agent gets kryptr-mcp is a local MCP server (stdio). It signs each request to the kryptr.io API with an API key you make for the agent, and offers these tools: | Tool | What it does | |---|---| | `kryptr_key` | the key's scopes, its spending policy, what it spent in the last 24 hours and what is left | | `kryptr_list_wallets`, `kryptr_wallet` | wallets and their receiving addresses on every network | | `kryptr_balances` | live on-chain balances per asset | | `kryptr_deposits` | incoming deposits with confirmations and sanctions screening | | `kryptr_transfers`, `kryptr_transfer` | outgoing transfers and their status | | `kryptr_send` | send an asset to an address (an idempotency key is required) | | `kryptr_fee_quote` | whether a send from an address with no TRX, ETH or BNB needs its network fee paid in the sent token, and that fee; `kryptr_send` then takes `fee_in_asset` and `max_fee` ([how it works](/blog/send-usdt-without-trx-or-eth)) | | `kryptr_swap_quote`, `kryptr_swap`, `kryptr_swap_status` | exchange one asset of a wallet for another | | `kryptr_assets`, `kryptr_networks`, `kryptr_safety` and other facts tools | asset ids, networks, limits and screening rules; these need no key | ## What the agent never gets - **No seed phrase.** No tool creates, deletes, imports or exports a wallet or its seed. - **No way to raise its own limit.** The key's scopes and spending policy are set in the dashboard, behind the account password and a 2FA code, and are enforced by the API, not by the MCP server. - **No shared key.** The agent uses its own key, so you can revoke it without touching your backend, and every transfer records the key that made it. ## Set it up 1. In the dashboard, open **API keys** and make a key for the agent with the scopes `wallets:read` and `wallets:transfer` (add `wallets:swap` only if it should swap). Give it a **daily limit in US dollars** and switch on **address book only**. A key that can send asks for your password and a 2FA code when you make it. 2. Add the server to your MCP client. It is on npm as [`kryptr-mcp`](https://www.npmjs.com/package/kryptr-mcp) and in the official MCP Registry as `io.kryptr/kryptr-mcp`, so clients that read the registry find it by name. Claude Code: ```bash claude mcp add kryptr \ -e KRYPTR_API_KEY=pk_live_… -e KRYPTR_API_SECRET=sk_live_… \ -- npx -y kryptr-mcp ``` Claude Desktop, Cursor and other clients take the same command in their `mcpServers` entry: ```json { "mcpServers": { "kryptr": { "command": "npx", "args": ["-y", "kryptr-mcp"], "env": { "KRYPTR_API_KEY": "pk_live_…", "KRYPTR_API_SECRET": "sk_live_…" } } } } ``` 3. For an agent that should only look, set `KRYPTR_MCP_READ_ONLY=1`: the send, fee quote, swap quote and swap tools are left out, whatever the key's scopes. Requests are signed on your machine with HMAC-SHA256. The secret is sent nowhere, and the API accepts each signature once, within 5 minutes. ## What happens at the limit The daily limit counts the key's transfers, including those waiting for approval, and its swaps of the last 24 hours, in US dollars at CoinGecko prices. - **Within the limit, to an address-book entry:** the transfer is queued and sent. - **Over the limit, or to an address outside the book:** the transfer is stored with the status `awaiting_approval` and a `hold_reason`. Nothing is signed. You approve or reject it in the dashboard with a 2FA code: approval moves it to `pending`, rejection to `failed`. - **To an address on the OFAC SDN list:** refused with `422 sanctioned_address`, whatever the key. - **A swap over the limit:** refused with `422 policy_limit`. - **A new address-book entry** becomes usable 24 hours after it is added, so an agent that talks someone into adding an address still waits a day. The agent can read its budget before it acts: `kryptr_key` returns `spent_usd_24h` and `remaining_usd` (from `GET /api/v1/key`). We ran this on kryptr.io on 1 December 2026 with a key limited to $5 a day and to the address book. A send of 0.01 TRX to an address outside the book came back `awaiting_approval`; the same call repeated with the same idempotency key returned the same transfer, not a second one; and a send to an address on the SDN list was refused with `422 sanctioned_address`. ## Retries never pay twice `kryptr_send` and `kryptr_swap` require an `idempotency_key`: a string the agent chooses for this one payment, such as your order id. A repeat with the same key returns the first transfer instead of sending again, so a tool call that timed out can be retried safely. A new key is a new payment, which the daily limit still counts. Only `confirmed` means paid and only `failed` means not paid. An agent should report any other status as in progress and check again with `kryptr_transfer`. ## Checklist - Give the agent its own key; never the key of your backend. - Grant `wallets:transfer` only if it must send, and `wallets:swap` only if it must swap. - Set a daily limit you could lose without harm, and switch on address book only. - Start with `KRYPTR_MCP_READ_ONLY=1` and remove it when the agent's behaviour is known. - Tell the agent to derive the idempotency key from your payment id. - Approve or reject held transfers in the dashboard; revoke the key when the agent is retired. --- # Auto-forward and auto-swap crypto deposits: wallet rules with limits URL: https://kryptr.io/blog/auto-forward-crypto-deposits/ Updated: 2026-12-01 Forward each confirmed crypto deposit to a treasury address or swap it into USDT automatically, with a minimum, a kept amount, a daily limit and a 2FA code. A deposit arrives, and somebody has to do something with it: move it to the treasury, send it to an exchange, turn it into a stablecoin before the price moves. Done by hand it waits for a person. Done by a script it needs a key that can send, a queue, retries, and a guard against sending twice after a restart. A kryptr.io wallet does it by itself with a **wallet rule**: you say once what happens to a coin's deposits, and the wallet acts on each one as soon as it is confirmed. ## What a rule is One rule belongs to one wallet and one asset. It has: | Field | Meaning | |---|---| | `asset_id` | the asset whose confirmed deposits fire the rule, for example `USDT.tron` | | `action` | `send` to an address, or `swap` into another asset of the same wallet | | `scope` | `deposit`: move the deposit's amount; `balance`: move everything the address holds above `keep_amount` | | `min_amount` | a deposit, or a remainder, below it is left alone, so dust never costs a fee | | `keep_amount` | what always stays on the address; required for a network's own coin (TRX, ETH, BNB…), because it pays the fee | | `daily_limit` | optional: the most the rule moves in any 24 hours, in the asset's units | Three common setups: - **Forward to the treasury.** USDT on TRON, `send`, `scope: deposit`, your cold address, `min_amount` 10. Every confirmed deposit of 10 USDT or more goes on; smaller ones stay. - **Convert on arrival.** A coin you do not want to hold, `swap` into the one you do, with a `keep_amount` that covers the fees. Each deposit becomes the target coin on the same wallet. The preview shows whether a provider quotes that pair and amount. - **Keep a float, send the excess.** ETH, `send`, `scope: balance`, `keep_amount` 0.5, `min_amount` 0.1. Whenever a deposit lifts the balance 0.1 ETH or more above 0.5 ETH, everything above 0.5 ETH goes to your address. ## Who can make one Funds move with no person present, so the switch is guarded: - A rule is **made and switched on only in the dashboard, with a 2FA code**. Switching off and deleting need no code: they only stop the wallet. - An **API key cannot make, change or switch a rule**. It reads them and their log (`GET /api/v1/wallets/{id}/rules` and `/rule-runs`, scope `wallets:read`). A key under a daily limit therefore cannot give itself a rule that sends around that limit. - A rule is fixed once made, except on and off. To change it, delete it and make another, so the log always shows what a run acted under. - Before you confirm, **Check the rule** tries it on a deposit: the amount it would move, whether a send's network fee can be paid (when the address already holds the amount), and for a swap the providers' quotes at that moment. ## What happens to a deposit 1. The deposit reaches the network's confirmation count (19 on TRON, 12 on Ethereum, 2 on Bitcoin). 2. The wallet records a **run** for it: one run per rule and deposit, written before anything moves. 3. The run reads the address's balance, decides the amount, and makes an ordinary transfer or swap with the run's own idempotency key. A restart in the middle returns the same transfer instead of sending again. 4. The run ends as `done` (the transfer or swap was started; its own status says how it ended), `skipped` (nothing to move, with the reason) or `failed` (it could not start, with the reason). Only deposits confirmed after the rule was switched on fire it. What arrived while it was off stays where it is. We ran this on kryptr.io on 1 December 2026. A rule on one wallet sent each TRX deposit of 1 TRX or more to another wallet's address, keeping what the wallet held before. The transfer that brought the 2 TRX deposit read as confirmed at 20:29:10 UTC; the deposit's run was recorded at 20:29:19 and queued its transfer within the same second, and the 2 TRX was confirmed at the other address by 20:30:31. In an earlier run that day two dust deposits of 0.000001 TRX from strangers reached the wallet; both were logged as skipped, below the minimum. A token send pays its fee in the network's coin: a rule that forwards USDT on TRON needs TRX on the same address. Without it the run fails at once with the amount of TRX needed, and no fee is burned on a transfer that cannot complete. ## The guards - **Sanctions, both ways.** A `send` rule's recipient is compared with the OFAC SDN list when the rule is made, when it is switched on and at each transfer. A deposit from a listed sender fires no run, and later runs leave its amount on the address until you switch the rule off and on again, which is your decision about what the address holds. - **Daily limit.** A run that would pass `daily_limit` is skipped and the deposit stays. - **No loops.** A wallet's swap rules may not form a cycle (`409 rule_loop`), and a chain of rules that feed one another across wallets stops after three runs. - **A failed swap stops the rule.** A refund arrives as a deposit of the same asset, so a swap rule switches itself off when its swap is refunded or fails, and tells you why. - **Retries with an end.** An unreadable network or a provider with no quote is tried 6 times, with waits doubling from one minute (about half an hour in all); then the run fails and the funds stay on the wallet. - **One at a time.** A run waits until the wallet's earlier transfer of that asset is final, because the chain's balance still counts those coins. ## Webhooks | Event | When | `data` | |---|---|---| | `rule.executed` | a run started its transfer or swap | the run, with `transfer_id` or `swap_id` | | `rule.failed` | a run could not start it | the run, with `reason` | | `rule.paused` | a rule switched itself off | the rule, with `paused_reason` | `rule.executed` means the transfer was queued, not that it is on chain: follow the transfer by `transfer.sent`, `transfer.confirmed` or `transfer.failed`, and a swap by `swap.completed`, `swap.refunded` or `swap.failed`. A skipped run sends nothing; it is in the log with its reason. ```json { "id": "6f1d…", "type": "rule.executed", "created_at": "2026-12-01T18:40:11Z", "data": { "id": "0b6f…", "rule_id": "b89e…", "wallet_id": "dac3…", "deposit_id": "5e1c…", "status": "done", "amount": "250", "transfer_id": "9a41…", "swap_id": null, "reason": "", "attempts": 0, "created_at": "2026-12-01T18:40:02Z", "finished_at": "2026-12-01T18:40:11Z" } } ``` ## Rules or your own code Write the forwarding yourself when the decision needs something the wallet does not know: an order's state, a customer's tier, a price from your own book. Your server then listens for `deposit.confirmed` and calls the transfer endpoint with an idempotency key. Use a rule when the decision is the same every time. It needs no key that can send on your server, it survives your server being down, and its limits are enforced where the funds are. ## Checklist - Start with `scope: deposit` and a `daily_limit`; move to `scope: balance` when the amounts are known. - Set `min_amount` above the network fee of one transfer, or dust will be forwarded at a loss. - For a token rule, keep enough of the network's coin on the address for fees. - Check the recipient address and its network in the preview: a sent transfer cannot be reversed. - Subscribe to `rule.failed` and `rule.paused`; they are the two events that need a person. - Read the log (`/rule-runs`) when a deposit did not move: every deposit a rule looked at is there with the reason. --- # Send USDT without TRX or ETH: the network fee paid in the token URL: https://kryptr.io/blog/send-usdt-without-trx-or-eth/ Updated: 2026-12-02 An address that holds only USDT or USDC can send it: the network's coin is delivered, the transfer goes out, the fee is taken in the token. Measured costs. A customer pays 50 USDT to a deposit address. The address now holds 50 USDT and nothing else, and it cannot send a cent of it: TRON takes its fee in TRX, Ethereum in ETH, BNB Smart Chain in BNB. Somebody has to bring the network's coin to that address first, in the right amount, and wait for it, before the USDT can move. With hundreds of deposit addresses that is a job of its own. On kryptr.io a transfer can pay its network fee **in the token it sends**. You send USDT; the fee is taken in USDT. ## How it works The network still wants its coin, so the platform brings it: 1. **The coin is delivered.** kryptr.io's fee wallet sends the address the TRX (or ETH, BNB, POL, AVAX) that the transfer needs. 2. **The transfer goes out** as soon as that delivery is confirmed. It is an ordinary transfer signed by your address, to your recipient, for the full amount you asked for. 3. **The fee is taken** from the same address in the token, after the transfer is final. Three ordinary transactions, all visible in an explorer. No contract holds your funds, no third party signs, and the recipient receives a plain token transfer from your address. It works for USDT on TRON, for USDT and USDC on Ethereum, BNB Smart Chain, Polygon, Arbitrum One, Optimism and Avalanche C-Chain, and for USDC on Base. ## In the API Ask for the price first: ```bash curl -X POST https://api.kryptr.io/api/v1/wallets/$WALLET/transfers/fee-quote \ -H "X-API-Key: pk_live_..." -H "X-Timestamp: $TS" -H "X-Signature: $SIG" \ -d '{"asset_id":"USDT.tron","to_address":"T...","amount":"1"}' ``` ```json { "asset_id": "USDT.tron", "amount": "1", "needed": true, "fee": "7.881662", "total": "8.881662", "coin": "TRX", "coin_balance": "0", "coin_usd": "0.288707", "asset_usd": "0.999208", "topup_amount": "23.6984", "station_cost": "1.1", "markup_percent": "10" } ``` The markup was 10 % when this quote was taken; it is 15 % since 2 December 2026. On TRON the quote can also carry an `energy` object, described below. `needed: false` means the address already holds enough of the coin; the transfer then goes as an ordinary one and nothing extra is charged. Otherwise send with two more fields: ```json { "asset_id": "USDT.tron", "to_address": "T...", "amount": "1", "fee_in_asset": true, "max_fee": "8.67" } ``` `max_fee` is the most you agree to pay. The fee is counted again when the transfer is made, and if it is above `max_fee` the request is refused with `409 fee_changed` and nothing moves: quote again and decide. The answer carries a `fee_send` object with the delivery, the transfer and the fee, each with its status and transaction hash; `GET /api/v1/transfers/{id}` returns it until all three are final. In the dashboard the same thing is a switch in the Send form, **Pay the network fee in USDT**, with the fee and the total shown before the review step. ## What the fee is The fee is the coin your transfer and the fee transfer need, estimated on the network at that moment with a margin, plus what the delivery itself costs, converted to the token at CoinGecko prices, plus a markup. What is left of the delivered coin after the two transfers stays on your address, and the next transfer from it needs less. **TRON energy.** Most of what a TRON token transfer costs is energy, and the network burns TRX for it when the address has none. When renting that energy costs less than the burn, kryptr.io's fee wallet rents it for the address from TronSave for an hour, right after the delivered coin is confirmed. The quote then carries `energy` (the amount and the rent in TRX), the fee counts the rent instead of the burn, and less TRX is delivered. The transfer goes once the energy is on the address. If the rental is refused, or the energy does not arrive within two minutes, the fee wallet delivers the TRX the network burns instead (`fee_send.burn_topup`), the transfer goes once that is confirmed, and the fee stays as quoted. ## Measured on kryptr.io, 2 December 2026 **TRON.** An address that had never held TRX sent 1 USDT with the switch on. | Step | Transaction cost on TRON | |---|---| | Delivery of 23.6984 TRX (activates the address) | 1.1 TRX | | The transfer of 1 USDT | 6.4285 TRX (64,285 energy) | | The fee transfer of 7.87912 USDT | 13.3735 TRX (130,285 energy and bandwidth) | The recipient had the USDT confirmed 2 minutes 30 seconds after the request; the fee transfer was confirmed 90 seconds later. The fee was 7.87912 USDT, and 3.8964 TRX of the delivered coin stayed on the address. The fee transfer cost twice the transfer because it was the first USDT its recipient ever held: TRON charges about double the energy for a transfer to an address with no balance of the token. A quote taken from the same address right after it priced the next transfer of 1 USDT at 3.887581 USDT, with 12.231992 TRX to deliver. **TRON with rented energy.** At 00:39 UTC the same day an address that held 5.387591 TRX and no energy sent 1 USDT to a USDT holder with the switch on. The fee was 3.484338 USDT at the 15 % markup. The fee wallet delivered 0.1 TRX and paid TronSave 10.375599 TRX for 154,284 energy for an hour, which was on the address 9 seconds after the order. The transfer and the fee transfer used 64,285 energy each and burned no TRX for it, only 0.345 TRX of bandwidth each; burned, that energy would have cost 12.857 TRX. The recipient had the USDT 2 minutes 38 seconds after the request, and the fee was taken 93 seconds later. **BNB Smart Chain.** An address with no BNB sent 0.1 USDT through the API. The fee was 0.00691 USDT, with 0.0000097700625 BNB delivered. The recipient had the USDT confirmed 50 seconds after the request, and the fee was taken 39 seconds later. The three transactions used 107,094 gas at 0.0625 gwei, 0.000006693375 BNB in all, and 0.0000043891875 BNB stayed on the address. USDT on TRON is expensive to move because the network prices energy that way, with or without this feature: the same two transfers cost about the same TRX when you bring the coin yourself. What the feature removes is the work of bringing it. ## What can go wrong - **The delivery fails**, or is not confirmed within an hour: the transfer fails and **nothing is charged**. - **The transfer itself fails on the network** after the coin was delivered: the fee is still taken, and the coin that is left stays on the address. - **The fee cannot be taken** (the tokens were moved away meanwhile): it is tried three times, then it is owed. The account's next transfers with `fee_in_asset` answer `409 fee_unpaid` until it is paid; ordinary transfers are not affected. - **The address is busy.** One such transfer per address at a time, and none while the address has a transfer that is not final: `409 address_busy`. The address's other transfers wait until the fee is taken, so the delivered coin is not spent by something else. - **The fee wallet has no coin on that network**: `503 fee_station_empty` with `Retry-After`. Send the ordinary way or try later. ## Limits and keys An API key's daily limit counts the amount **plus the fee**. A transfer with `fee_in_asset` that would pass the limit, or that goes to an address outside an address-book-only key's book, is refused instead of waiting for approval, because the coin would already be on its way. The delivered coin appears in the address's deposits marked `fee_topup: true`, in the list and in the `deposit.detected` and `deposit.confirmed` webhooks, so your accounting can tell it from a customer's payment. It starts no [wallet rule](/blog/auto-forward-crypto-deposits). Wallet rules and swaps pay their own fees in the network's coin: an address that forwards USDT by a rule still needs TRX on it. ## When to use it - **Deposit addresses that only ever receive a stablecoin.** Sweep them without keeping a float of coin on each. - **Wallets of users who hold only USDT.** They can pay out without learning what TRX is. - **Occasional transfers on a network you do not hold the coin of.** When an address sends often, keep the coin on it: the ordinary fee has no markup and no delivery to wait for. ## Checklist - Call `fee-quote` before every such transfer and pass `max_fee`; do not reuse an old quote. - Check `needed`: when it is `false`, send the ordinary way. - Follow `fee_send.status` to `done`; a `fee_unpaid` needs a person. - In your books, skip deposits with `fee_topup: true`. - For the full flow of a safe transfer (idempotency keys, statuses, retries) see [Send crypto over an API safely](/blog/send-crypto-api-safely). --- # Test a crypto wallet API without real coins: test mode on kryptr.io URL: https://kryptr.io/blog/crypto-wallet-api-test-mode/ Updated: 2026-12-02 Test keys, test wallets and simulated deposits on the same API: build deposits, webhooks, transfers, swaps and rules before a single real coin moves. 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: ```bash 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"}' ``` ```json { "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`: ```json { "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](/blog/send-usdt-without-trx-or-eth) 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](/blog/send-crypto-api-safely), and for the events [crypto deposit webhooks](/blog/crypto-deposit-webhooks).