request(
"GET",
"/v1/custody/mpc/get_balance/",
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"chain_code": "ETH",
"coin": "ETH"
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"coin_data": [
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "49999999999999999987",
"decimal": 18
},
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "47290549999999999988",
"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 Balance
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
mpc
/
get_balance
/
request(
"GET",
"/v1/custody/mpc/get_balance/",
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"chain_code": "ETH",
"coin": "ETH"
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"coin_data": [
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "49999999999999999987",
"decimal": 18
},
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "47290549999999999988",
"decimal": 18
}
],
"nft_data": [
{
"nft_code": "NFT_ETH_BLUE_CHURCH",
"token_id": "200",
"address": "0xcc656c94b8ec881ddd9611e8ad4a4eca9f859e7b",
"chain_code": "ETH",
"contract_address": "0x357fd2942e8ee435d7d21859ecae99bd597d8779",
"balance": "1"
}
]
}
}
Request
The address to get the balance of.
The chain code of the coin to filter by.
The asset coin of the coin to filter by.
Response
request successful or failed
Show object
Show object
Show object
Show object
The address of the coin.
The asset coin of the coin.
The chain code of the coin.
Abbreviation (reference only, subject to change)
Full name (reference only, subject to change)
The balance of the coin.
The decimal of the coin.
request(
"GET",
"/v1/custody/mpc/get_balance/",
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"chain_code": "ETH",
"coin": "ETH"
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"coin_data": [
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "49999999999999999987",
"decimal": 18
},
{
"address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"coin": "ETH",
"chain_code": "ETH",
"display_code": "ETH",
"description": "Ethereum",
"balance": "47290549999999999988",
"decimal": 18
}
],
"nft_data": [
{
"nft_code": "NFT_ETH_BLUE_CHURCH",
"token_id": "200",
"address": "0xcc656c94b8ec881ddd9611e8ad4a4eca9f859e7b",
"chain_code": "ETH",
"contract_address": "0x357fd2942e8ee435d7d21859ecae99bd597d8779",
"balance": "1"
}
]
}
}
Was this page helpful?
⌘I
