Getting started
Base URL
https://api.chainpay.site
TLS is required in production.
Two deposit paths
A. No registration (webhook only)
POST /deposit-address with ticker, callbackUrl, forwardAddress, externalReference.
No API key. The address does not appear in the cabinet — follow status via webhook
or GET /deposit-address/:id/status.
- Create an address.
- Show it to the payer.
- Receive a
confirmedwebhook (or poll status).
B. With API key (shown in the cabinet)
- Register in the cabinet and generate an API key.
- Same
POST /deposit-address, plus headerx-api-key: <your key>. - The address is attributed to your account and listed under Deposits in the cabinet.
curl -X POST https://api.chainpay.site/deposit-address \
-H 'content-type: application/json' \
-H 'x-api-key: $CHAINPAY_KEY' \
-d '{
"ticker": "trc20/usdt",
"callbackUrl": "https://your-service.example.com/webhook?token=secret",
"forwardAddress": "TYourOwnTronWallet...",
"externalReference": "order-123"
}'
Full contract — Deposits.
Payouts — cabinet + API key
- Register in the cabinet if you have not already.
- Generate an API key (shown once).
POST /payout/walletwith thex-api-keyheader.- Store
walletAccessToken(also shown once). - Fund
gasStationAddresswith the chain's native coin. POST /payout/withdrawfor withdrawals.
Details — Payouts.
Balance — public
GET /balance/:chain/:address — no key. See Balance.