> For the complete documentation index, see [llms.txt](https://centr.gitbook.io/netcs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://centr.gitbook.io/netcs/api/functions/retrieving-balance.md).

# WalletGetBalance()

Retrieve Balance of given PublicKey

Before calling the function make sure you have the Connector object initialized.&#x20;

{% content-ref url="/pages/-MgM38pBUeXL96\_AW6Jy" %}
[Understanding Connector Object](/netcs/getting-started/understanding-connector-object.md)
{% endcontent-ref %}

## Function Call&#x20;

| Field    | Type       | Description      |
| -------- | ---------- | ---------------- |
| `PubKey` | ​`string`​ | Base58 Publickey |

```csharp
WalletGetBalance("Input here Base58 PublicKey");
```

{% hint style="info" %}
Return value of function: [WalletBalanceGetResult](/netcs/api/result-types/walletbalancegetresult.md)
{% endhint %}

## Example

{% tabs %}
{% tab title="C#" %}

```csharp
Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.WalletBalanceGetResult balance = connect_.WalletGetBalance("4SFfA1S2xfA3BdgkTn2tK14yDhLuD11RVz78kqx35jct");
Console.WriteLine(balance);
```

{% endtab %}

{% tab title="Python" %}

```python
Connect_ =  Connector("165.22.212.253:9090")
print(Connect_.WalletGetBalance("ACkyon3ERkNEcNwpjUn4S6TLP3L76LFg3X6kWoJx82dK"))
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
var connect_ = new Connector("194.163.152.177", 9091);
connect_.WalletGetBalance("Ba2Uhtcy4cZ6nJNaQKXWcdLgPH7Kat2R67CUkRU2bkTk").then((res) => {connect_.Close();console.log(res); });
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Return value of function: [WalletBalanceGetResult](/netcs/api/result-types/walletbalancegetresult.md)
{% endhint %}

#### Output of Example

Output is printed via ObjectDumper

```scheme
{WalletBalanceGetResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success: "
  Balance: {Amount}
    Integral: 99996
    Fraction: 33347167968750000
  Delegated: null
```
