# Add to Address Book

Developers can use the SDK to add addresses to the address book associated with a multisig wallet. This functionality simplifies the management of addresses and provides a convenient way to keep track of contacts.

```typescript
const address = '...' // The address you want to add to your address book
const name = 'Mat' // The name you want to assign to the address
const { data, error } = await client.addToAddressBook(address, name);

if (data){
    console.log(data)
    // use your data
}
else if(error){
    console.log(error)
}
```

#### Response Data

```json
// updated addressbook
[
  {
    "address": "5FHLH4HkrsJ6QmNrQBYFkk3b73XhrfBXNSxnQrp2qsoNimak"
    "name": "Tom",
  },
  {
    "address": "5Fe8gVNXoNoB5tbTc2jtTPBi5VAoBaRmMcjqZGnSZSYtVXiL",
    "name": "Harry"
  },
  {
    "address": "5EF9om9xiFbRMgjPcrH9fc2G8QUUXF4iibnFoPW2PRTC2shS",
    "name": "Mat"
  },
]
```

[Generic Error](https://polkasafe.gitbook.io/polkasafe-sdk/guides-and-tutorials/generic-errors)
