# 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](/status-codes.md)
{% 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fewcha.app/response-format-and-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
