Assets & Balances API

Overview

Endpoints for retrieving wallet balances, assets, and NFTs across different networks.

Get Wallet Balance

Retrieve the native token balance for a wallet.

GET api.bloclabs.com/v1/wallets/{wallet_id}/balance

Query Parameters

{
    "currency": "usd"  // Optional: Convert balance to fiat (usd, eur, gbp)
}

Response

{
    "status": "success",
    "data": {
        "wallet_id": "wallet_xyz123",
        "native_balance": {
            "amount": "1.5",
            "currency": "ETH",
            "usd_value": "3000.00"
        },
        "total_value_usd": "3000.00",
        "last_updated": "2024-03-15T10:00:00Z"
    }
}

Get Wallet Assets

Retrieve all tokens and their balances for a wallet.

Query Parameters

Response

Get Wallet NFTs

Retrieve all NFTs owned by the wallet.

Query Parameters

Response

Add Custom Token

Add a custom token to track in the wallet.

Request

Response

Error Responses

Invalid Token Address

Token Not Found

Rate Limit

Notes

  • Balance updates may have a slight delay (up to 30 seconds)

  • NFT metadata is cached for performance

  • Token prices are updated every minute

  • Custom tokens are validated before being added

Last updated

Was this helpful?