> For the complete documentation index, see [llms.txt](https://docs.fewcha.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fewcha.app/get-started/get-data.md).

# Get data

After connect to the wallet, you can get [Account Data](/reference/wallet-methods/account-data.md), examples: **balance**, **address**, **network URL**, **network type**... then show it on your website

### getBalance

```typescript
async window.fewcha.getBalance(): Promise<Response<string>>;
```

Response

```typescript
{
    "method": "getBalance",
    "status": 200,
    "data": "4000"
}
```

### account

```typescript
async window.fewcha.account(): Promise<Response<Record<string, string>>>;
```

Response

```typescript
{
    "method": "getCurrentAccount",
    "status": 200,
    "data": {
        "address": "0x...",
        "publicKey": "0x..."
    }
}
```

### getNetworkType

```typescript
async window.fewcha.getNetworkType(): Promise<Response<"Aptos"|"SUI">>;
```

Response

```typescript
{
    "method": "getCurrentAccount",
    "status": 200,
    "data": "Aptos"
}
```

{% hint style="info" %}
This method is a part of [Account Data](/reference/wallet-methods/account-data.md) methods
{% endhint %}
