# Response Format and Types

### Response Data

Format data of any response

{% tabs %}
{% tab title="Response Type" %}

```typescript
type Response<T> = {
  data: T;
  method: string;
  status: number;
};
```

Example data

```javascript
{
    status: 200, // check at Status codes
    method: "<method name>",
    data: <data>
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Check list of **status** number at [status-codes](https://docs.fewcha.app/status-codes "mention")
{% endhint %}

### Public Account

{% tabs %}
{% tab title="PublicAccount" %}

```typescript
type PublicAccount = {
  address: string;
  publicKey: string;
};

```

Example data

```json
{
    "address": "0x20364f4121f608f2a09830bc0ab6980fdccff45c2f5df6c41c17f40e511fe80e",
    "publicKey": "0x89a10bded6d812d21299ee129410d53a74f12f91183989c19282fa24ce629b49"
}
```

{% endtab %}
{% endtabs %}

### Other data types

{% tabs %}
{% tab title="Aptos" %}
Other data types will be obtained from [Aptos SDK](https://github.com/fewcha-wallet/aptos-web3/blob/main/packages/web3/src/types.ts#L81)
{% endtab %}

{% tab title="SUI" %}
Other data types will be obtained from [SUI SDK](https://github.com/fewcha-wallet/aptos-web3/blob/main/packages/web3/src/types.ts#L23)
{% endtab %}
{% endtabs %}
