Create Wallet

Create a new Tron or Bitcoin Wallet used for deposits and withdrawals

API Endpoint

POST /client/wallets/save


Request Headers:

Authorization: Bearer <access_token>

Content-Type: application/json Request Body:

{
    "tag" : "<optional_your_tag>",
    "lightning": "on"// for BTC lightning, else for TRON
}

Success Response You will get under the created wallet details under thesuccess.data

Wallet Address: success.data.address.base58

Wallet Identifier: success.data.uuid

Sample Below:

{
    "success": {
        "message": "Wallet Saved",
        "data": {
            "address": {
                "base58": "TYViWxHG5wgnnmCMfVfwTvp3KGkRt4qk7V",
                "hex": "41F717E263E541FDB3C69F7F5062D0573EFF8A9760"
            },
            "username": "<your_email>",
            "uuid": "dd249743-22a3-42fb-8d86-3e27287272e2",
            "createdAt": 1697182976392,
            "tag": "<optional_your_tag>",
            "balances": {
                "tokenBalanceRaw": 0,
                "tokenBalance": 0,
                "tronBalanceSun": 0,
                "tronBalance": 0
            }
        }
    },
    "uuid": "7ac71a3c-7aa2-440c-a379-bcf416fd74e9"
}

curl 'https://apis.xpay.stream/client/wallets/save' \
  -H 'Content-Type: application/json'               \
  -H 'Authorization: Bearer <access_token>'         \
  --data-raw '{"tag":"<your_tag>"}'              

Last updated