Introduction
BchainPay is a crypto payment gateway for developers. One REST API lets you accept payments in ETH, SOL, TRX, BNB, USDT, USDC, DAI, BUSD across four networks — Ethereum, Solana, Tron, and BNB Chain.
You create a payment intent, generate a blockchain address, and your customer pays on-chain. BchainPay monitors the transaction and notifies you via a signed webhook when the payment completes.
What you can build
- One-time checkouts — create a payment intent, show the customer the deposit address, fulfill the order on a
payment_intent.completedwebhook. - Invoices — generate payment intents per invoice with a
referencefield for reconciliation. - Subscriptions — create recurring intents on a schedule and track status via the API.
- WooCommerce integration — accept crypto in WordPress with the BchainPay plugin.
Payment flow
- Authenticate — send your API key as a Bearer token in the
Authorizationheader. - Create a payment intent —
POST /v1/payment-intentswith an amount, currency, and optional network/token. - Generate an address —
POST /v1/payment-intents/:id/generate-addressreturns a fresh on-chain deposit address. - Customer pays — BchainPay monitors the blockchain for the incoming transaction.
- Webhook fires — a signed
payment_intent.completedevent hits your endpoint so you can fulfill the order.
Supported networks and tokens
| Network | Native token | Stablecoins |
|---|---|---|
ethereum | ETH (18 decimals) | USDT (6), USDC (6), DAI (18) |
bnbchain | BNB (18 decimals) | USDT (18), USDC (18), BUSD (18) |
solana | SOL (9 decimals) | USDT (6), USDC (6) |
tron | TRX (6 decimals) | USDT (6), USDC (6) |
Next steps
- Quickstart — your first payment in minutes
- Authentication — API key types and rotation
- Payment intents — lifecycle and statuses
- Verify a webhook — secure your callback handler
- API reference — full request/response schemas