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-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"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-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"walletId": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
}
],
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"name": "text",
"createdAt": "2024-11-11T14:26:21.910Z",
"updatedAt": "2024-11-11T14:26:21.910Z"
}
],
"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-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"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-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"walletId": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
}
],
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"createdAt": "2024-11-11T14:26:21.910Z",
"updatedAt": "2024-11-11T14:26:21.910Z"
},
"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-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"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-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"walletId": "text",
"updatedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
}
],
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-11-11T14:26:21.910Z",
"createdAt": "2024-11-11T14:26:21.910Z"
},
"createdAt": "2024-11-11T14:26:21.910Z",
"updatedAt": "2024-11-11T14:26:21.910Z"
},
"access": "READ",
"pending": true,
"accepted": false,
"createdAt": "2024-11-11T14:26:21.910Z",
"updatedAt": "2024-11-11T14:26:21.910Z"
}
],
"createdAt": "2024-11-11T14:26:21.910Z",
"updatedAt": "2024-11-11T14:26:21.910Z"
}
],
"timestamp": "2024-11-11T14:26:21.910Z"
}