How It Works

  1. Token Generation
    A Bearer token is issued after the client authenticates with the system. This token is specific to the user or system and ensuring secure access.

  2. Token Usage
    The token is added to the request’s Authorization header in the following format: Authorization: Bearer <your_token>

  3. IP Whitelist
    You must add the IP address to your whitelist to make a secure request. Without doing this, you will not be able to access the API.


Example Request with Bearer Authentication

Below is an example of how to make a POST request to the /api/v1/wallet/generate endpoint to create a new wallet:

curl --location 'https://dash.betteruseblockchain.com/api/v1/wallet/generate' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_BEARER_TOKEN' \
--data '{
 "network": "BTC",
 "network_type": "mainnet"
}'