βRemove from Address Book
The SDK provides the ability to remove addresses from the address book of a multisig wallet. This feature allows developers to update the address book and remove unnecessary or outdated entries.
const address = '...' // The address you want to remove from your address book
const name = '...' // The name of the address
const { data, error } = await client.removeFromAddressBook(address, name);
if (data){
console.log(data)
// use your data
}
else if(error){
console.log(error)
}Response Data
// updated addressbook
[
{
"address": "5FHLH4HkrsJ6QmNrQBYFkk3b73XhrfBXNSxnQrp2qsoNimak"
"name": "Tom",
},
{
"address": "5Fe8gVNXoNoB5tbTc2jtTPBi5VAoBaRmMcjqZGnSZSYtVXiL",
"name": "Harry"
},
]Last updated