Message

BNBNB402 API Documentation Based on X402 Protocol

Interact with BNB402 token contract on BSC - BSC Implementation of X402 Protocol
GET /api/health
Check the health status of the BNB402 API service.
INPUT PARAMETERS

No input parameters required.

RESPONSE
200 OK
{
  "status": "healthy",
  "timestamp": 1761319234567,
  "network": "BSC",
  "protocol": "X402",
  "version": "1.0.0"
}
GET /api/status
Get current contract status including mint count, total supply, and liquidity status.
INPUT PARAMETERS

No input parameters required.

RESPONSE
200 OK
{
  "contract": "0xB79CF61D6308c9Fbd33B9Cf743075E890380B61C",
  "totalSupply": "500000000 BNB402",
  "mintCount": 0,
  "bnbCollected": "0 BNB",
  "blockNumber": 0,
  "network": "BSC Mainnet"
}
GET /api/pool
Get current pool statistics including total BNB collected, mint progress, and liquidity status.
INPUT PARAMETERS

No input parameters required.

RESPONSE
200 OK
{
  "totalBnbCollected": "3.847 BNB",
  "targetBnb": "10 BNB",
  "progress": 38.47,
  "totalMints": 3847,
  "maxMints": 10000,
  "mintActive": true,
  "liquidityAdded": false,
  "contractBalance": "3.847 BNB",
  "tokensDistributed": "192,350,000 BNB402"
}
POST /api/mint
Batch mint BNB402 tokens by sending BNB to the contract. Default 0.001 BNB per mint, can adjust batch count.
BATCH MINT INTERFACE
×
=
0.001 BNB
You will receive: 50,000 BNB402
Exchange rate: 1 BNB = 50,000,000 BNB402
Contract address: 0xB79CF61D6308c9Fbd33B9Cf743075E890380B61C
Transaction type: Direct BNB transfer to contract