# Get data

After connect to the wallet, you can get [account-data](https://docs.fewcha.app/reference/wallet-methods/account-data "mention"), 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](https://docs.fewcha.app/reference/wallet-methods/account-data "mention") methods
{% endhint %}
