On this page

    1. Home
    2. API
    3. API Reference
    4. Wallet
    5. Wallet Balance

    Wallet Balance

    This endpoint retrieves the current balance and metadata for the primary wallet associated with your account, including the blockchain address and asset details.


    GET /wallet/balance

    Retrieve details and USDC balance for your account wallet.

    Request

    GET /wallet/balance

    Headers:

    {
      "Host": "api.bringyour.com",
      "Authorization": "Bearer YOUR_JWT_TOKEN",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "wallet_info": {
        "wallet_id": "string",
        "token_id": "string",
        "blockchain": "string",
        "blockchain_symbol": "string",
        "create_date": "string",
        "balance_usdc_nano_cents": 0,
        "address": "string"
      }
    }

    Fields

    FieldTypeDescription
    wallet_infoobjectContainer for wallet identification and balance.
    wallet_info.wallet_idstringUnique internal identifier for the wallet.
    wallet_info.token_idstringIdentifier for the token (usually USDC).
    wallet_info.blockchainstringThe network name (e.g., "SOL", "MATIC").
    wallet_info.blockchain_symbolstringThe native currency symbol.
    wallet_info.create_datestringISO 8601 timestamp of wallet creation.
    wallet_info.balance_usdc_nano_centsintegerBalance in USDC nano-cents (1/10^11 of a dollar).
    wallet_info.addressstringThe public blockchain address.

    Example

    HTTP Request

    GET /wallet/balance HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "wallet_info": {
        "wallet_id": "w_12345",
        "token_id": "USDC",
        "blockchain": "SOL",
        "blockchain_symbol": "SOL",
        "create_date": "2024-10-15T10:00:00Z",
        "balance_usdc_nano_cents": 5000000000,
        "address": "HN7cABqL36vRRXYZ8Q4sG"
      }
    }


    Powered by Sudoc v2.5.0
    Hide table of contents