Fetch All Coin Balances
This API fetches the balance of all the crypto and non-crypto coins present in user's wallet.
Fetch all coin balances
Authorizations
Path parameters
user_uuidstringRequired
user_uuid of the user whose wallet balance summary needs to be fetched
Query parameters
refresh_balancestringOptional
setting refresh_balance as true hard refreshes wallet balances in metasky systems immediately
network_nameobject · enumOptionalExample:
Network name of blockchain whose NFT balances need to be filtered
ETHEREUM
Possible values: coin_symbolobject · enumOptionalExample:
Coin symbol
ETH
Possible values: pageSizeinteger · int64RequiredExample:
page length in pagination
10
pageNumberinteger · int64RequiredExample:
page number in pagination
10
Responses
200
Coin balances fetched successfully
application/json
400
Invalid request
application/json
401
Authorization error
application/json
404
User not found
application/json
get
GET /api/v1/user/{user_uuid}/wallet/balance/coins HTTP/1.1
Host: www.developer.metasky.me
api_key: YOUR_API_KEY
Accept: */*
{
"message": "Coin balances fetched successfully",
"status": "success",
"request_id": "7e0c3676-82c9-43dc-8678-61bc4aa7c72c",
"data": {
"coins": [
{
"coin_uuid": "r90e7bc6-2t0d-3sd9-a580-2e29cb8e73e7",
"onchain_contract_address": "0x0000000000000000000000000000000000001010",
"symbol": "ETH",
"image": "https://skywallet-public-resources.s3.ap-southeast-1.amazonaws.com/coins/polygon+with+white+bg.png",
"animation": "",
"media_type": "image",
"coin_balance": 0.0055,
"network": {
"type": "EVM",
"name": "ETHEREUM",
"chain_id": "1"
},
"coins_worth": [
{
"symbol": "USD",
"value": 10
},
{
"symbol": "INR",
"value": 800
},
{
"symbol": "JPY",
"value": 1500
}
]
}
],
"total_coins_worth": [
{
"symbol": "USD",
"value": 10
},
{
"symbol": "INR",
"value": 800
},
{
"symbol": "JPY",
"value": 1500
}
],
"total_count": 1000,
"page_number": 10,
"page_size": 10
}
}
Last updated
Was this helpful?