> 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/reference/wallet-methods/account-data.md).

# Account Data

### account

{% tabs %}
{% tab title="window\.fewcha" %}

```typescript
async window.fewcha.account(): Promise<Response<PublicAccount>>
```

Response

```typescript
{
    "method": "getCurrentAccount",
    "status": 200,
    "data": {
        "address": "0x20364f4121f608f2a09830bc0ab6980fdccff45c2f5df6c41c17f40e511fe80e",
        "publicKey": "0x89a10bded6d812d21299ee129410d53a74f12f91183989c19282fa24ce629b49"
    }
}
```

{% endtab %}

{% tab title="@fewcha/web3" %}
[TypeScript Wrapper](/typescript-wrapper.md)

```typescript
async web3.action.account(): Promise<Response<PublicAccount>>
```

Response

```typescript
{
    "method": "getCurrentAccount",
    "status": 200,
    "data": {
        "address": "0x20364f4121f608f2a09830bc0ab6980fdccff45c2f5df6c41c17f40e511fe80e",
        "publicKey": "0x89a10bded6d812d21299ee129410d53a74f12f91183989c19282fa24ce629b49"
    }
}
```

{% endtab %}
{% endtabs %}

### getNetwork

{% tabs %}
{% tab title="window\.fewcha" %}

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

Response

```typescript
{
    "method": "getNetwork",
    "status": 200,
    "data": "https://fullnode.devnet.aptoslabs.com"
}
```

{% endtab %}

{% tab title="@fewcha/web3" %}
[TypeScript Wrapper](/typescript-wrapper.md)

```typescript
async web3.action.getNetwork(): Promise<Response<string>>;
```

Response

```typescript
{
    "method": "getNetwork",
    "status": 200,
    "data": "https://fullnode.devnet.aptoslabs.com"
}
```

{% endtab %}
{% endtabs %}

### getBalance

{% tabs %}
{% tab title="window\.fewcha" %}

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

Response

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

{% endtab %}

{% tab title="@fewcha/web3" %}
[TypeScript Wrapper](/typescript-wrapper.md)

```typescript
async web3.action.getBalance(): Promise<Response<string>>;
```

Response

```typescript
{
    "method": "getBalance",
    "status": 200,
    "data": {
        "0x1::aptos_coin::AptosCoin": "4000",
        "0x8::staked_coin::StakedCoin": "9000"
    }
}
```

{% endtab %}
{% endtabs %}

### getNetworkType

{% tabs %}
{% tab title="window\.fewcha" %}

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

Response

```typescript
{
    "method": "getNetworkType",
    "status": 200,
    "data": "SUI"
}
```

{% endtab %}
{% endtabs %}
