LiquidSwap Docs
  • Welcome to LiquidSwap
    • Key Features
  • Using The LiquidSwap Dapp
    • Swapping
    • Revoke Approvals
  • API
    • Using The API
      • Find Pools
      • Route Finding
      • Token List
      • Token Balances
      • Interacting with the Smart Contract
Powered by GitBook
On this page
  1. API
  2. Using The API

Token Balances

Returns token balances for a specific wallet address.

Endpoint: GET /tokens/balances

Parameters:

Name
Type
Description
Required

wallet

address

Address of the wallet to check balances for

Yes

limit

number

Maximum number of tokens to return

No

Example Requests:

GET https://api.liqd.ag/tokens/balances?wallet=0x123456789abcdef123456789abcdef123456789
GET https://api.liqd.ag/tokens/balances?wallet=0x123456789abcdef123456789abcdef123456789&limit=10

Example Response:

{
  "success": true,
  "data": {
    "wallet": "0x123456789abcdef123456789abcdef123456789",
    "tokens": [
      {
        "token": "Native HYPE",
        "balance": "1000000000000000000",
        "name": "HYPE",
        "symbol": "HYPE",
        "decimals": 18
      },
      {
        "token": "0x47bb061C0204Af921F43DC73C7D7768d2672DdEE",
        "balance": "500000000000000000",
        "name": "Token One",
        "symbol": "TOKEN1",
        "decimals": 18
      }
    ],
    "count": 2,
    "limitedCount": 2
  }
}
PreviousToken ListNextInteracting with the Smart Contract

Last updated 17 days ago