How to share address book?
Sharing address books has never been easy
Last updated
Sharing address books has never been easy
Last updated
Arrange data in the format
{
"toId": "string"
"book": number
"access": "READ" | "READWRITE"
}
Call this API to get the message
Sign the above message by following signature guidelines mentioned here according to the chain you are using
Coming soon...
/address-books/request/message
READ
, READWRITE
curl -L \
--request POST \
--url 'https://sandbox-api.fetcch.xyz/v1/address-books/request/message' \
--header 'secret-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{"book":1,"pending":true,"accepted":false,"updatedAt":"2025-02-23T09:36:06.668Z","access":"READ"}'
{
"status": 1,
"timestamp": "2025-02-23T09:36:06.668Z",
"data": {
"message": "text",
"request": {
"id": 1,
"bookId": 1,
"book": {
"id": 1,
"name": "text",
"ownerId": "text",
"owner": {
"owner": "text",
"ownerId": "text",
"ownerIdentity": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": "[Circular Reference]",
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"chainId": 1,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z"
},
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"secondary": "[Circular Reference]"
},
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z"
},
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z",
"addresses": [
{
"id": 1,
"address": "text",
"name": "text",
"addressBookId": 1,
"addressBook": "[Circular Reference]",
"chainType": "EVM"
}
],
"walletIds": [
{
"id": 1,
"walletId": "text",
"wallet": "[Circular Reference]",
"name": "text",
"addressBookId": 1,
"addressBook": "[Circular Reference]",
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z"
}
],
"requests": [
{
"id": 1,
"bookId": 1,
"book": "[Circular Reference]",
"toId": "text",
"to": "[Circular Reference]",
"pending": true,
"accepted": false,
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z",
"access": "READ"
}
]
},
"toId": "text",
"to": {
"owner": "text",
"ownerId": "text",
"ownerIdentity": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": "[Circular Reference]",
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"chainId": 1,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z"
},
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"secondary": "[Circular Reference]"
},
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z"
},
"pending": true,
"accepted": false,
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z",
"access": "READ"
}
}
}
Successful response
/address-books/request
READ
, READWRITE
curl -L \
--request POST \
--url 'https://sandbox-api.fetcch.xyz/v1/address-books/request' \
--header 'secret-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{"book":1,"pending":true,"accepted":false,"updatedAt":"2025-02-23T09:36:06.668Z","access":"READ"}'
{
"status": 1,
"timestamp": "2025-02-23T09:36:06.668Z",
"data": {
"message": "text",
"request": {
"id": 1,
"bookId": 1,
"book": {
"id": 1,
"name": "text",
"ownerId": "text",
"owner": {
"owner": "text",
"ownerId": "text",
"ownerIdentity": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": "[Circular Reference]",
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"chainId": 1,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z"
},
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"secondary": "[Circular Reference]"
},
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z"
},
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z",
"addresses": [
{
"id": 1,
"address": "text",
"name": "text",
"addressBookId": 1,
"addressBook": "[Circular Reference]",
"chainType": "EVM"
}
],
"walletIds": [
{
"id": 1,
"walletId": "text",
"wallet": "[Circular Reference]",
"name": "text",
"addressBookId": 1,
"addressBook": "[Circular Reference]",
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z"
}
],
"requests": [
{
"id": 1,
"bookId": 1,
"book": "[Circular Reference]",
"toId": "text",
"to": "[Circular Reference]",
"pending": true,
"accepted": false,
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z",
"access": "READ"
}
]
},
"toId": "text",
"to": {
"owner": "text",
"ownerId": "text",
"ownerIdentity": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": "[Circular Reference]",
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"chainId": 1,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 1,
"name": "text",
"symbol": "text",
"icon": "text",
"shortName": "text",
"infoURL": "text",
"chainId": 1,
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"type": "EVM",
"rpc": [
"text"
]
},
"updatedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z"
},
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2025-02-23T09:36:06.668Z",
"createdAt": "2025-02-23T09:36:06.668Z",
"secondary": "[Circular Reference]"
},
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z"
},
"pending": true,
"accepted": false,
"createdAt": "2025-02-23T09:36:06.668Z",
"updatedAt": "2025-02-23T09:36:06.668Z",
"access": "READ"
}
}
}
Successful response