API URL
POST /api/v1/sub_address_balanceRequest
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
pid | integer(int64) | Yes | WaaS Project ID. Navigate to: “Cregis > WaaS > [Your Project] > Settings > Developer” |
currency | string | Yes | The token you want to query (chain_id@token_id) |
address | string | No | The sub-address you want to query |
maximum_balance | string | No | Query address maximum balance |
minimum_balance | string | No | Query address minimum balance |
page_num | integer(int32) | No | Page number (defaults to 1 if empty) |
page_size | integer(int32) | No | Items per page (defaults to 10 if empty, maximum allowed value is 100 if specified) |
nonce | string | Yes | 6-character random string |
timestamp | integer(int64) | Yes | Current timestamp (milliseconds) |
sign | string | Yes | Digital signature to prevent tampering |
Request Example
Response
Response Result
Name | Type | Description |
---|---|---|
code | string | Response Code |
msg | string | Response Message |
data | object | Response Data Object |
Response data
Object
Name | Type | Description |
---|---|---|
pid | integer(int64) | WaaS project ID |
currency | string | The token name of the token you are querying |
address | string | Queried address |
total | string | Total balance(Available+Processing) |
available | string | Available balance |
processing | string | Processing balance |