Query Pool Address Balance

Get the pool address balance of a deposit wallet.


GET /v1/sofa/wallets/{WALLET_ID}/pooladdress/balance

Response Body

balancestringPool address balance
unconfirm_balancestringUnconfirmed pool address balance
currencyint64Cryptocurrency of the wallet
wallet_addressstringPool address of the wallet

Error Code

HTTP CodeError CodeErrorMessageDescription
403-Forbidden. Invalid wallet ID-No wallet ID found
403-Forbidden. Header not found-Missing X-API-CODE, X-CHECKSUM header or query param t
403-Forbidden. Invalid timestamp-The timestamp t is not in the valid time range
403-Forbidden. Invalid checksum-The request is considered a replay request
403-Forbidden. Invalid API code-X-API-CODE header contains invalid API code
403-Invalid API code for wallet {WALLET_ID}-The API code mismatched
403-Forbidden. Checksum unmatch-X-CHECKSUM header contains wrong checksum
403-Forbidden. Call too frequently ({THROTTLING_COUNT} calls/minute)-Send requests too frequently
404304Wallet ID invalid-The wallet is not allowed to perform this request

Sample Request



Response Body

  "balance": "0.515",
  "currency": 60,
  "unconfirm_balance": "0",
  "wallet_address": "0xb6ad80c96D093EA584AfcB9443927812d3e4Bd94"

Sample cURL Command

curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/pooladdress/balance'