Crypto wallet API: a developer's guide to holding crypto through an API

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.

Published 5 min read

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, "<timestamp>.<METHOD>.<path>.<body>").

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:

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

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 covers verification and retries in detail.

Send transfers

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 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 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, and the machine-readable spec at /openapi.json.

More guides