> For the complete documentation index, see [llms.txt](https://docs.fetcch.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fetcch.xyz/how-to-integrate/guides/address-books/how-to-create-address-books.md).

# How to create address books?

### Arrange Data

Arrange address book data in the format

```json
{
    "name": "string"
    "addresses": {
        "address": "address",
        "chainType": "EVM" | "APTOS" | "SOLANA",
        "name": "string"
    }[],
    "walletIds": {
        "walletId": "string",
        "name": "string"
    },
    "ownerId": "string"
}
```

### Generate & Sign Message

Generate message using this API and above data

{% openapi src="/files/xjcYh3sZCi10eHJaNA7T" path="/address-books/message" method="post" %}
[openapi.yml](https://2219691098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxaHazojZlIts4pidXQC6%2Fuploads%2FfnFyuZwzFVn93GBdO4kv%2Fopenapi.yml?alt=media\&token=7e1414fc-c6b1-4244-9549-9bb061a79cc5)
{% endopenapi %}

Sign the above message by following signature guidelines mentioned [here](/how-to-integrate/guides/utility/how-to-sign-messages.md) according to the chain you are using

### Call Create Address Book API

{% openapi src="/files/xjcYh3sZCi10eHJaNA7T" path="/address-books" method="post" %}
[openapi.yml](https://2219691098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxaHazojZlIts4pidXQC6%2Fuploads%2FfnFyuZwzFVn93GBdO4kv%2Fopenapi.yml?alt=media\&token=7e1414fc-c6b1-4244-9549-9bb061a79cc5)
{% endopenapi %}
