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.
-
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.
-
Copy your test key
Open API keys and copy the key that starts with
br_test_. Put it in your server's environment, for exampleBLOCKSREADER_API_KEY. Never put a key in a mobile app or a web page.Done when this returns the list of networks:
bashcurl https://api.blocksreader.com/v1/chains \ -H "Authorization: Bearer $BLOCKSREADER_API_KEY" -
Create a deposit address
One request per customer and network.
refis your own id for the customer, so every deposit comes back tagged with it.bashcurl 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
idstarting withadr_and anaddress. Save both. Test addresses work on Bitcoin, Ethereum, BNB Chain and Tron. -
Add your webhook endpoint
Your endpoint must be a public
httpsaddress. While you build on your laptop, a tunnel gives you one:cloudflared tunnel --url http://localhost:3000.bashcurl 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 asBLOCKSREADER_WEBHOOK_SECRET. You can also add the endpoint on the Webhooks page. -
Handle the webhook
Check the signature on the raw request body, reply
2xxwithin 10 seconds, then credit the customer once. Every deposit sendsdeposit.confirmedtwice (at 1 and at 3 confirmations), so make(chain, tx_hash, address)unique in your database instead of using the event id.Expressimport 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 } });Flaskimport hmac, hashlib, json, os, time from flask import Flask, request, abort app = Flask(__name__) SECRET = os.environ["BLOCKSREADER_WEBHOOK_SECRET"].encode() @app.post("/webhooks/blocksreader") def blocksreader_webhook(): raw = request.get_data() # raw bytes header = request.headers.get("BR-Webhook-Signature", "") parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p) t = int(parts.get("t", "0")) if abs(time.time() - t) > 300: abort(401) expected = hmac.new(SECRET, f"{t}.".encode() + raw, hashlib.sha256).hexdigest() if not hmac.compare_digest(expected, parts.get("v1", "")): abort(401) event = json.loads(raw) if event["type"] == "deposit.confirmed": pass # insert on (chain, tx_hash, address) unique; credit only if new elif event["type"] == "payout.sent": pass # mark the withdrawal with data["payout_id"] completed, save tx_hash elif event["type"] == "payout.failed": pass # refund the withdrawal with data["payout_id"] return "", 200Laravel// routes/api.php (exclude this route from CSRF) Route::post('/webhooks/blocksreader', function (Illuminate\Http\Request $request) { parse_str(str_replace(',', '&', (string) $request->header('BR-Webhook-Signature')), $p); $t = (int) ($p['t'] ?? 0); abort_if(abs(time() - $t) > 300, 401); $expected = hash_hmac('sha256', $t . '.' . $request->getContent(), config('services.blocksreader.webhook_secret')); abort_unless(hash_equals($expected, (string) ($p['v1'] ?? '')), 401); $event = json_decode($request->getContent(), true); if ($event['type'] === 'deposit.confirmed') { // DB::transaction: insertOrIgnore on (chain, tx_hash, address); credit only if inserted } elseif ($event['type'] === 'payout.sent') { // mark the withdrawal with $event['data']['payout_id'] completed, save tx_hash } elseif ($event['type'] === 'payout.failed') { // refund the withdrawal with $event['data']['payout_id'] } return response()->noContent(200); });net/httpfunc blocksreaderWebhook(w http.ResponseWriter, r *http.Request) { raw, _ := io.ReadAll(r.Body) parts := map[string]string{} for _, kv := range strings.Split(r.Header.Get("BR-Webhook-Signature"), ",") { if k, v, ok := strings.Cut(kv, "="); ok { parts[k] = v } } t, _ := strconv.ParseInt(parts["t"], 10, 64) if d := time.Now().Unix() - t; d > 300 || d < -300 { http.Error(w, "stale", http.StatusUnauthorized) return } mac := hmac.New(sha256.New, []byte(os.Getenv("BLOCKSREADER_WEBHOOK_SECRET"))) fmt.Fprintf(mac, "%d.", t) mac.Write(raw) expected := hex.EncodeToString(mac.Sum(nil)) if !hmac.Equal([]byte(expected), []byte(parts["v1"])) { http.Error(w, "bad signature", http.StatusUnauthorized) return } w.WriteHeader(http.StatusOK) // json.Unmarshal(raw, &event); deposit.confirmed: credit once per (chain, tx_hash, address) // payout.sent: mark the withdrawal with data.payout_id completed; payout.failed: refund it }Done when your handler is running at the URL from step 4. The next step proves it.
-
Simulate a deposit
Pretend a customer paid 25 USDT into the address from step 3.
bashcurl 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.confirmedabout 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. -
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, checkGET /v1/payoutsbefore you retry. In test mode a simulated signer approves the payout for you.bashcurl 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
pendingtosenta few seconds later and your endpoint receivespayout.sentwith itspayout_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 · SQLiteunzip blocksreader-nextjs-starter.zip && cd blocksreader-nextjs
npm install
cp .env.example .env.local # add your test key
npm run dev
npm run sandbox:testLaravel
Laravel 12 · PHP 8.2+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-testThe 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
claude mcp add --transport http blocksreader https://api.blocksreader.com/mcp \
--header "Authorization: Bearer br_test_YOUR_KEY"Then run this in your project:
/mcp__blocksreader__integrate_depositsClaude, 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.
- 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.
- 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.
- Start the signer. It signs your payouts and sweeps automatically.
- 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. - 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 see | Why | Fix |
|---|---|---|
403 ONBOARDING_REQUIRED | The business questions haven't been answered yet. | Sign in to the dashboard and answer them. Keys work right after. |
401 INVALID_API_KEY | Wrong 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 arrives | The 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 fails | The 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 twice | deposit.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_REQUIRED | A live call before choosing a plan. | Choose a plan on the Billing page. Test mode never needs one. |
XPUB_REQUIRED on a live address | No public key for that network yet. | Run sync-keys on your signer to add it. |
Live payout stays pending | Your 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_SUSPENDED | The 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.