> ## Documentation Index
> Fetch the complete documentation index at: https://developers.avacloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to get the native balance of an address

Checking the balance of a wallet is vital for users who want to manage their digital assets effectively. By reviewing their wallet balance, users can:

* **Track their asset portfolio**: Regularly monitoring the wallet balance keeps users informed about the value of their holdings, enabling them to make informed decisions on buying, selling, or retaining their digital assets.
* **Confirm received transactions**: When expecting digital assets, verifying the wallet balance helps ensure that transactions have been successfully completed and the correct amounts have been received.
* **Plan future transactions**: Knowing the wallet’s balance allows users to prepare for upcoming transactions and verify that they have enough funds to cover fees or other related costs.

This guide will walk you through how to get the native balance associated with a specific wallet address on the C-chain network using the Data API.

### Step 1: Set Up AvaCloud

First, ensure that you have set up [AvaCloud](https://app.avacloud.io/) and have access to your API key. If you’re new to Avacloud, create an account and obtain an API key.

### Step 2: Retrieve the Native Balance of an Address

To obtain the native balance of a wallet address you can use [Get native token balance](/data-api/evm-balances/get-native-token-balance) endpoint. You’ll need to specify the `chainId` and the `address` for which you want to retrieve the balance.

Here’s how you can do it:

<CodeGroup>
  ```javascript AvacloudSDK theme={null}
  import { Avalanche } from "@avalanche-sdk/chainkit";

  const avalancheSDK = new Avalanche({
  apiKey: "<YOUR_API_KEY_HERE>",
  chainId: "43114",
  network: "mainnet",
  });

  async function run() {
  const result = await avalancheSDK.data.evm.balances.getNativeBalance({
  blockNumber: "6479329",
  address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
  currency: "usd",
  });

  // Handle the result
  console.log(JSON.stringify(result, null, 2));
  }

  run();

  ```

  ```bash cURL theme={null}
  curl --request GET \
     --url https://glacier-api.avax.network/v1/chains/43114/addresses/0x71C7656EC7ab88b098defB751B7401B5f6d8976F/balances:getNative \
    --header 'x-glacier-api-key: <api-key>'
  ```
</CodeGroup>

Response

```json theme={null}
{
  "nativeTokenBalance": {
    "chainId": "43114",
    "name": "Avalanche",
    "symbol": "AVAX",
    "decimals": 18,
    "price": {
      "currencyCode": "usd",
      "value": 26.32
    },
    "balance": "3316667947990566036",
    "balanceValue": {
      "currencyCode": "usd",
      "value": 87.29
    },
    "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/3e4b8ff10b69bfa31e70080a4b142cd0/avalanche-avax-logo.svg"
  }
}
```

Congratulations 🎉 You’ve successfully retrieved the native balance of a wallet address using just a few lines of code with the Data API!
