API Reference
Stablecoins
Generate Address [POST]

Generate Address

https://sandboxapi.bitnob.co/api/v1/addresses/:chain/generate

Generate a new address for USDT/USDC on supported blockchain networks. This address can be used by businesses to send stablecoins. Address generated for one chain can receive both USDT and USDC.


Body Parameters

ParameterTypeRequiredDescription
customerEmailstringEmail associated with the address (optional).
labelstringCustom label for the address (optional).

Supported Chains for :chain

  • tron
  • bsc
  • polygon
  • ethereum

Request

Addresses/Generate Address [POST]
curl --location --request POST \
'https://sandboxapi.bitnob.co/api/v1/addresses/:chain/generate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer API-KEY' \
--data-raw '{
  "customerEmail": "customer1@gmail.com",
  "label": "my address"
}'

Responses

🟢 200 - Successful
{
"status": true,
"message": "Address generation successful",
"data": {
  "id": "e7553399-8baf-4d6d-aac8-b518fef737c8",
  "createdAt": "2024-07-31T17:46:27.228Z",
  "updatedAt": "2024-07-31T17:46:27.228Z",
  "address": "0x9e81e702cac66c521c1d9d7e7b361f7d8dfc",
  "label": "my address",
  "addressType": "tron"
}
}