How to Integrate a Non-Custodial Bitcoin & USDT Payment Gateway in Node.js | With sandbox testing

0
5



Get a working Bitcoin and USDT checkout in your Node.js app in minutes. This walkthrough shows a production‑style Blockonomics integration, secure CALLBACK_URL setup with ngrok, and sandbox testing for BTC and Sepolia USDT using MetaMask. Clone the ready‑to‑use repo, run the bootstrap, and follow the step‑by‑step test flows shown in the video.

What you’ll learn

– Set up a Node.js demo repo and install dependencies in one command
– Configure .env (BLOCKONOMICS_API_KEY, CALLBACK_SECRET, CALLBACK_URL) and expose your server with ngrok
– Use sample code from Github repo.
– Use the Blockonomics API Playground and Test Bench to generate addresses, fetch prices, and simulate BTC confirmations
– Run USDT Web3 tests on Sepolia: switch MetaMask to Sepolia, fund with Sepolia ETH and Sepolia USDT, connect wallet, and complete a payment flow
– Verify received payments in the Blockonomics dashboard and how to switch to mainnet safely

Resources

– Code repo — Blockonomics Node.js API Tester (copy/paste ready): .
– Blockonomics API Playground (endpoints & live testing):
– Blockonomics Developer Docs — Receiving Payments & Callbacks:
– Blockonomics Test Bench (simulate BTC payments):
– MetaMask (wallet):
– ngrok (local tunnel):
– Sepolia faucets (Sepolia ETH / test tokens): ;
– Blockonomics Official Website:
– Blockonomics API documentation and API Playground (official):
– Blockonomics Help Center:
– Contact Blockonomics Sales:

Join the Blockonomics Community:
X (formerly Twitter): / blockonomics_co

source