request(
"GET",
"/v1/custody/mpc/list_balances/",
{
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/list_balances/', {
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/mpc/list_balances/", map[string]string{
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
})
{
"success": true,
"result": {
"total": 2,
"coin_data": [
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "49999999999999999986",
"decimal": 18
}
],
"nft_data": [
{
"nft_code": "NFT_ETH_BLUE_CHURCH",
"token_id": "200",
"address": "0xcc656c94b8ec881ddd9611e8ad4a4eca9f859e7b",
"chain_code": "ETH",
"contract_address": "0x357fd2942e8ee435d7d21859ecae99bd597d8779",
"balance": "1"
}
]
}
}
Account
Get Balances List
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
mpc
/
list_balances
/
request(
"GET",
"/v1/custody/mpc/list_balances/",
{
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/list_balances/', {
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/mpc/list_balances/", map[string]string{
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
})
{
"success": true,
"result": {
"total": 2,
"coin_data": [
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "49999999999999999986",
"decimal": 18
}
],
"nft_data": [
{
"nft_code": "NFT_ETH_BLUE_CHURCH",
"token_id": "200",
"address": "0xcc656c94b8ec881ddd9611e8ad4a4eca9f859e7b",
"chain_code": "ETH",
"contract_address": "0x357fd2942e8ee435d7d21859ecae99bd597d8779",
"balance": "1"
}
]
}
}
Request
String
Coin code of the token asset to retrieve.
String
Chain code of the token asset to retrieve.
Int
required
Index of the page to retrieve.
Int
required
Number of items to retrieve per page(max:50)
Response
bool
request successful or failed
object
Show object
Show object
object[]
request(
"GET",
"/v1/custody/mpc/list_balances/",
{
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/list_balances/', {
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/mpc/list_balances/", map[string]string{
"coin": "ETH",
"chain_code": "ETH",
"page_index": 0,
"page_length": 50
})
{
"success": true,
"result": {
"total": 2,
"coin_data": [
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "49999999999999999986",
"decimal": 18
}
],
"nft_data": [
{
"nft_code": "NFT_ETH_BLUE_CHURCH",
"token_id": "200",
"address": "0xcc656c94b8ec881ddd9611e8ad4a4eca9f859e7b",
"chain_code": "ETH",
"contract_address": "0x357fd2942e8ee435d7d21859ecae99bd597d8779",
"balance": "1"
}
]
}
}
