# WalletDataGet()

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

{% content-ref url="../../getting-started/understanding-connector-object" %}
[understanding-connector-object](https://centr.gitbook.io/netcs/getting-started/understanding-connector-object)
{% endcontent-ref %}

## Function Call&#x20;

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

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

{% hint style="info" %}
Return value of function: [WalletDataGetResult](https://centr.gitbook.io/netcs/api/result-types/walletdatagetresult)
{% endhint %}

## Example

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

```csharp
Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.WalletDataGetResult walletdata = connect_.WalletDataGet("4SFfA1S2xfA3BdgkTn2tK14yDhLuD11RVz78kqx35jct");
Console.WriteLine(walletdata);
```

{% endtab %}

{% tab title="Python" %}

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

{% endtab %}

{% tab title="Javascript" %}

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

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Return value of function: [WalletDataGetResult](https://centr.gitbook.io/netcs/api/result-types/walletdatagetresult)
{% endhint %}

#### Output of Example

Output is printed via ObjectDumper

```scheme
{WalletDataGetResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success: "
  WalletData: {WalletData}
    WalletId: 0
    Balance: {Amount}
      Integral: 248866058
      Fraction: 664013671875000000
    LastTransactionId: 27
    Delegated: null
```
