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": [
{
"name": "text",
"addresses": [
{
"address": "text",
"chainType": "EVM",
"name": "text"
}
],
"walletIds": [
{
"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"
}
],
"ownerId": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"walletId": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
}
],
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"name": "text",
"createdAt": "2024-10-30T00:53:58.187Z",
"updatedAt": "2024-10-30T00:53:58.187Z"
}
],
"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"
}
],
"ownerId": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"walletId": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
}
],
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"createdAt": "2024-10-30T00:53:58.187Z",
"updatedAt": "2024-10-30T00:53:58.187Z"
},
"requests": [
{
"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"
}
],
"ownerId": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"walletId": "text",
"updatedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
}
],
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-10-30T00:53:58.187Z",
"createdAt": "2024-10-30T00:53:58.187Z"
},
"createdAt": "2024-10-30T00:53:58.187Z",
"updatedAt": "2024-10-30T00:53:58.187Z"
},
"access": "READ",
"pending": true,
"accepted": false,
"createdAt": "2024-10-30T00:53:58.187Z",
"updatedAt": "2024-10-30T00:53:58.187Z"
}
],
"createdAt": "2024-10-30T00:53:58.187Z",
"updatedAt": "2024-10-30T00:53:58.187Z"
}
],
"timestamp": "2024-10-30T00:53:58.187Z"
}