From signup to your first test payment in ten minutes.

Everything on this page runs in test mode. It's free, needs no plan and no call with us. Pick the way you like to work: watch the video, follow the steps, start from a working project, or let your AI assistant build it.

Quickstart, start to finish

The real dashboard, in test mode. Jump to any part.

Follow the steps

Each step ends with what you should see. If you see it, move on. If not, the fixes for common problems are at the bottom of this page.

  1. Create your account

    Sign up at app.blocksreader.com with your work email, confirm it, and answer the three short questions about your business. API keys start working once those are answered.

    Done when you see the dashboard with Test selected at the top.

  2. Copy your test key

    Open API keys and copy the key that starts with br_test_. Put it in your server's environment, for example BLOCKSREADER_API_KEY. Never put a key in a mobile app or a web page.

    Done when this returns the list of networks:

    bash
    curl https://api.blocksreader.com/v1/chains \
      -H "Authorization: Bearer $BLOCKSREADER_API_KEY"
  3. Create a deposit address

    One request per customer and network. ref is your own id for the customer, so every deposit comes back tagged with it.

    bash
    curl https://api.blocksreader.com/v1/addresses \
      -H "Authorization: Bearer $BLOCKSREADER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{ "chain": "tron", "ref": "customer_8431" }'

    Done when the response has an id starting with adr_ and an address. Save both. Test addresses work on Bitcoin, Ethereum, BNB Chain and Tron.

  4. Add your webhook endpoint

    Your endpoint must be a public https address. While you build on your laptop, a tunnel gives you one: cloudflared tunnel --url http://localhost:3000.

    bash
    curl https://api.blocksreader.com/v1/webhooks \
      -H "Authorization: Bearer $BLOCKSREADER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{ "url": "https://your-domain.com/webhooks/blocksreader",
            "events": ["deposit.confirmed", "payout.sent", "payout.failed"] }'

    Done when you've saved the secret (whsec_…) from the response as BLOCKSREADER_WEBHOOK_SECRET. You can also add the endpoint on the Webhooks page.

  5. Handle the webhook

    Check the signature on the raw request body, reply 2xx within 10 seconds, then credit the customer once. Every deposit sends deposit.confirmed twice (at 1 and at 3 confirmations), so make (chain, tx_hash, address) unique in your database instead of using the event id.

    Express
    import crypto from 'node:crypto';
    import express from 'express';
    
    const app = express();
    const SECRET = process.env.BLOCKSREADER_WEBHOOK_SECRET; // whsec_...
    
    app.post('/webhooks/blocksreader', express.raw({ type: 'application/json' }), async (req, res) => {
      const header = String(req.get('BR-Webhook-Signature') || '');
      const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
      const t = Number(parts.t);
      if (!t || Math.abs(Date.now() / 1000 - t) > 300) return res.sendStatus(401);
    
      const expected = crypto.createHmac('sha256', SECRET).update(`${t}.${req.body}`).digest('hex');
      const got = String(parts.v1 || '');
      if (got.length !== expected.length ||
          !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected))) return res.sendStatus(401);
    
      const event = JSON.parse(req.body);
      res.sendStatus(200); // reply first, then do the work
    
      if (event.type === 'deposit.confirmed') {
        // INSERT ... ON CONFLICT (chain, tx_hash, address) DO NOTHING,
        // and credit event.data.ref only if a row was inserted.
      } else if (event.type === 'payout.sent') {
        // mark the withdrawal with event.data.payout_id completed, save tx_hash
      } else if (event.type === 'payout.failed') {
        // refund the withdrawal with event.data.payout_id
      }
    });

    Done when your handler is running at the URL from step 4. The next step proves it.

  6. Simulate a deposit

    Pretend a customer paid 25 USDT into the address from step 3.

    bash
    curl https://api.blocksreader.com/v1/sandbox/deposits \
      -H "Authorization: Bearer $BLOCKSREADER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{ "address_id": "adr_...", "amount": "25", "asset": "USDT" }'

    Done when your endpoint receives deposit.confirmed about 5 seconds later and again about 6 seconds after that, and your customer is credited 25 USDT exactly once. The Events page in the dashboard shows both events.

  7. Send a test payout

    Sending works the same way. Always send an Idempotency-Key: use your own withdrawal id and send one attempt at a time, so a retry within 24 hours returns the same payout. After a server error, check GET /v1/payouts before you retry. In test mode a simulated signer approves the payout for you.

    bash
    curl https://api.blocksreader.com/v1/payouts \
      -H "Authorization: Bearer $BLOCKSREADER_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: withdrawal-1001" \
      -d '{ "chain": "tron", "asset": "USDT", "to": "TXyz8rWkX2bJ3yHn5cPq1Vd7GfS9aV7abc", "amount": "10" }'

    Done when the payout goes from pending to sent a few seconds later and your endpoint receives payout.sent with its payout_id.

That's a complete integration in test mode. Every field, error and option is in the developer docs.

Start from a working project

Download, add your test key, run. Each project already has a deposit address per user, a signed webhook receiver that credits each deposit exactly once, a catch-up job for missed webhooks, a balance screen and tests.

Next.js

Next.js 16 · React 19 · SQLite
terminal
unzip blocksreader-nextjs-starter.zip && cd blocksreader-nextjs
npm install
cp .env.example .env.local   # add your test key
npm run dev
npm run sandbox:test
Download Next.js starter

Laravel

Laravel 12 · PHP 8.2+
terminal
unzip blocksreader-laravel-starter.zip && cd blocksreader-laravel
composer install
cp .env.example .env   # add your test key
php artisan key:generate && php artisan migrate
php artisan blocksreader:sandbox-test
Download Laravel starter

The starters cover receiving. For sending, add the payout request from step 7 to your withdrawal flow. Each project's README explains how to plug in your own login and database.

Let your AI assistant build it

Connect our MCP server and your assistant can read this guide, create test addresses, simulate deposits and payouts and read webhook deliveries, then write and test the integration in your own code. It acts with your API key and can never send a live payout.

Watch: Claude Code builds it

A real session, 2 minutes. The build is sped up; the rest is real time.

Claude Code

terminal
claude mcp add --transport http blocksreader https://api.blocksreader.com/mcp \
  --header "Authorization: Bearer br_test_YOUR_KEY"

Then run this in your project:

Claude Code
/mcp__blocksreader__integrate_deposits

Claude, Cursor and VS Code

In Claude, open Settings → Connectors → Add custom connector, paste https://api.blocksreader.com/mcp and sign in with your API key. Cursor and VS Code take the same URL with your key in a header. Exact settings for each tool.

Before you go live, run /mcp__blocksreader__go_live_checklist. It checks your code against everything in the next section.

Going live

When test mode works, these steps switch you to real money. Your wallet is created on your own machine and its keys never leave your control. Nothing moves without your signer.

Watch: going live on BNB Chain

Filmed with real money: a 10-cent deposit and two payouts. Secrets are blurred.

  1. Choose a plan on the Billing page and top up the billing wallet. It takes USDT on BNB Chain (BEP-20) only. Pay as you go is 0.5% of incoming live deposits; payouts and sweeps carry no BlocksReader fee.
  2. Set up the BlocksReader Signer with Docker on a server that stays online (Linux, Windows or Mac). One command creates your wallet: write the seed phrase on paper. Setup then adds your public keys to your account with a code we email you. Signer setup.
  3. Start the signer. It signs your payouts and sweeps automatically.
  4. Switch to your live key (br_live_) on your server and add your production webhook endpoint with that key. Test endpoints never receive live events.
  5. Take one small real deposit, for example 1 USDT on Tron, and check it's credited once. Then send one small payout.

If something doesn't work

The problems people hit most, and how to fix them.

What you seeWhyFix
403 ONBOARDING_REQUIREDThe business questions haven't been answered yet.Sign in to the dashboard and answer them. Keys work right after.
401 INVALID_API_KEYWrong key, a key that was replaced, or the header is missing Bearer.Send Authorization: Bearer br_test_…. Copy the key again from API keys.
Webhook never arrivesThe URL isn't public https, the endpoint was made with a different key or mode, or your server didn't answer 2xx.Open the endpoint on the Webhooks page. Its deliveries show each attempt and your server's reply. Press Send test event to try again.
Signature check failsThe body was parsed or re-encoded before checking, or the wrong secret is used.Check against the raw bytes of the body, with the secret of that exact endpoint. Test and live endpoints have different secrets.
A deposit was credited twicedeposit.confirmed arrives at 1 and at 3 confirmations, each with its own event id.Make (chain, tx_hash, address) unique and credit inside a transaction.
402 PLAN_REQUIREDA live call before choosing a plan.Choose a plan on the Billing page. Test mode never needs one.
XPUB_REQUIRED on a live addressNo public key for that network yet.Run sync-keys on your signer to add it.
Live payout stays pendingYour signer isn't running, or the sending address can't cover the amount plus the network fee.Start the signer and check its logs. Fund the address, with a little of the network's coin for token fees.
402 BILLING_SUSPENDEDThe billing wallet couldn't cover a fee for more than 2 days.Top up and settle on the Billing page. Deposit webhooks held meanwhile are sent right away.

Still stuck? Email [email protected] with the request you sent and the response you got.