Metasky
  • Welcome!
  • Introduction
    • Our Solutions
    • Web 3.0 Resources
  • Metasky Studio
    • Introduction
    • Easy Steps To Create Your Own Club
    • Studio Modules
      • Messaging
      • Members
      • Utilities
        • Discord Utility
      • Collections
      • Bounties
        • Twitter
        • Custom
      • Marketplace
      • Leaderboard
      • Settings
      • Accounts
  • Skywallet (End User UI)
    • Home
    • Wallet
    • My Clubs
    • Updates
  • Metasky API Collection
    • Metasky API - Swagger Link
    • Authentication
    • Blockchains and Networks
    • ENUMS
    • API List
      • User
        • Register New User
      • Wallet
        • Fetch Wallet Balance Summary
        • Fetch All Wallet NFTs
        • Fetch All Coin Balances
        • Fetch NFT Details
        • Fetch System Health Status
      • Accounts
        • Create Specific Account
        • Fetch All Accounts
      • Orders
        • Fetch Listing Details
        • Preview Transfer Asset Order
        • Create a Transfer Order
        • Preview NFT Drop
        • Claim NFT Order
        • Fetch An Order
        • Fetch All Orders
      • Auth
        • Secure Action
        • Secure Action Verify
Powered by GitBook
On this page

Was this helpful?

  1. Metasky API Collection
  2. API List
  3. Wallet

Fetch All Coin Balances

This API fetches the balance of all the crypto and non-crypto coins present in user's wallet.

PreviousFetch All Wallet NFTsNextFetch NFT Details

Last updated 1 year ago

Was this helpful?

Fetch all coin balances

get

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 · enumOptional

Network name of blockchain whose NFT balances need to be filtered

Example: ETHEREUMPossible values:
coin_symbolobject · enumOptional

Coin symbol

Example: ETHPossible values:
pageSizeinteger · int64Required

page length in pagination

Example: 10
pageNumberinteger · int64Required

page number in pagination

Example: 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
  }
}