How to get address books?
Process of fetching address books
Address books can fetched based on 2 parameters
id
- can besatyam@metamask
,satyam.eth
etcname
(optional) - can be name of the particular address books
Call API
Last updated
Process of fetching address books
Address books can fetched based on 2 parameters
id
- can be satyam@metamask
, satyam.eth
etc
name
(optional) - can be name of the particular address books
Last updated
const response = await fetch('https://sandbox-api.fetcch.xyz/v1/address-books', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": [
{
"id": 0,
"name": "text",
"addresses": [
{
"id": 0,
"address": "text",
"chainType": "EVM",
"name": "text",
"addressBookId": 0
}
],
"walletIds": [
{
"id": 0,
"walletId": "text",
"wallet": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": {
"id": "text",
"logo": "text",
"apiKey": "text",
"delimiter": "text",
"txHash": "text",
"registry": [
{
"address": "text",
"chainType": "EVM",
"txHash": "text",
"providerId": "text"
}
],
"dataSourceId": 0,
"ownerId": "text",
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"chainId": 0,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chainId": 0,
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"walletId": "text",
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
}
],
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"name": "text",
"addressBookId": 0,
"createdAt": "2024-12-21T14:45:03.363Z",
"updatedAt": "2024-12-21T14:45:03.363Z"
}
],
"ownerId": "text",
"owner": {
"owner": "text",
"ownerId": "text",
"ownerIdentity": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": {
"id": "text",
"logo": "text",
"apiKey": "text",
"delimiter": "text",
"txHash": "text",
"registry": [
{
"address": "text",
"chainType": "EVM",
"txHash": "text",
"providerId": "text"
}
],
"dataSourceId": 0,
"ownerId": "text",
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"chainId": 0,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chainId": 0,
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"walletId": "text",
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
}
],
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"createdAt": "2024-12-21T14:45:03.363Z",
"updatedAt": "2024-12-21T14:45:03.363Z"
},
"requests": [
{
"id": 0,
"bookId": 0,
"toId": "text",
"to": {
"owner": "text",
"ownerId": "text",
"ownerIdentity": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": {
"id": "text",
"logo": "text",
"apiKey": "text",
"delimiter": "text",
"txHash": "text",
"registry": [
{
"address": "text",
"chainType": "EVM",
"txHash": "text",
"providerId": "text"
}
],
"dataSourceId": 0,
"ownerId": "text",
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"chainId": 0,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chainId": 0,
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"walletId": "text",
"updatedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
}
],
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-12-21T14:45:03.363Z",
"createdAt": "2024-12-21T14:45:03.363Z"
},
"createdAt": "2024-12-21T14:45:03.363Z",
"updatedAt": "2024-12-21T14:45:03.363Z"
},
"access": "READ",
"pending": true,
"accepted": false,
"createdAt": "2024-12-21T14:45:03.363Z",
"updatedAt": "2024-12-21T14:45:03.363Z"
}
],
"createdAt": "2024-12-21T14:45:03.363Z",
"updatedAt": "2024-12-21T14:45:03.363Z"
}
],
"status": 0,
"timestamp": "2024-12-21T14:45:03.363Z"
}