Balance
Balance ERC20
- Endpoint: /balance/{address}/{asset}
- Description: Used to get balance of ERC20 token
- Method:
GET
- Params:
Name | Type | Require? | Description |
---|---|---|---|
address | address | [x] | Address of user |
asset | address | [x] | Address of ERC20 token |
- Return Values:
JSON object
Name | Type | Description |
---|---|---|
status | bool | Status of request |
asset | object | Token information |
asset .identity | string | Token identity |
asset .name | string | Token name |
asset .symbol | string | Token symbol |
asset .decimals | number | Token decimals |
wallet | object | Wallet information |
wallet .address | string | Wallet address |
balance | string | Balance |
Balance ERC721
- Endpoint: /own/{address}/{asset}/{page}
- Description: Used to get list tokenId of ERC721
- Method:
GET
- Params:
Name | Type | Require? | Description |
---|---|---|---|
address | address | [x] | Address of user |
asset | address | [x] | Address of ERC721 token |
page | number | Page of tokenId, default = 0 |
- Return Values:
JSON object
Name | Type | Description |
---|---|---|
status | bool | Status of request |
asset | object | Token information |
asset .identity | string | Token identity |
asset .name | string | Token name |
asset .symbol | string | Token symbol |
wallet | object | Wallet information |
wallet .address | string | Wallet address |
total | number | Total tokenId |
tokenIds | string[] | List of tokenId |