Fetcch
  • ๐ŸŸ What is Fetcch?
  • ๐Ÿš…Pull Payments Layer
    • ๐Ÿ”ญOverview
    • โ“How it works?
      • ๐Ÿ‘ฎSpecification
      • ๐ŸŽ’How is it stored?
      • ๐ŸŒŠPull Payments Flow
    • ๐Ÿ”Security
      • ๐ŸŽ’Storage
      • โ›“๏ธCross Chain
    • โš”๏ธUse Pull Payments
  • ๐Ÿ†”Universal Identity Layer
    • ๐Ÿ”ญOverview
    • โ“How it works?
      • ๐Ÿ‘ฎSpecifications
      • ๐ŸŽ’How is it stored?
      • ๐ŸŒŠIdentity Flow
    • ๐Ÿ”Security
      • ๐ŸŽ’Storage
    • โš”๏ธUse Fetcch Identity
  • ๐Ÿ—๏ธData Structures
    • ๐Ÿ“–Address Books
      • ๐Ÿ”ญOverview
      • ๐ŸŽ’Storage
  • ๐Ÿ’ปHow to integrate?
    • โœˆ๏ธQuickstart
    • โ›ท๏ธSDK Quickstart
    • ๐Ÿ”“Blockchain
    • โœจGuides
      • ๐Ÿ™‡Authentication
      • ๐Ÿ˜Identity
        • How to resolve identity?
        • How to create identity?
        • How to update identity?
      • ๐ŸคŒTransaction Requests
        • How to get transaction requests?
        • How to create transaction request?
        • How to build transaction?
        • How to resolve transaction request?
      • ๐Ÿซ‚Address Books
        • How to get address books?
        • How to create address books?
        • How to share address book?
        • How to accept address book request?
      • โš™๏ธUtility
        • How to sign messages?
          • EVM
          • Solana
          • Aptos
          • EIP-6492 Compatible Signatures
        • How to generate & verify proofs for identity?
    • ๐Ÿ“–API Reference
      • โ˜ข๏ธTroubleshooting Errors
      • ๐ŸŸขOpenAPI Specs
  • ๐ŸงOpen Source
    • ๐Ÿ“ธ@fetcch/resolve-names
  • ๐ŸฅถFAQs
    • FAQs
Powered by GitBook
On this page
  1. How to integrate?
  2. Guides
  3. Address Books

How to share address book?

Sharing address books has never been easy

PreviousHow to create address books?NextHow to accept address book request?

Last updated 1 year ago

Arrange Data

Arrange data in the format

{
    "toId": "string"
    "book": number
    "access": "READ" | "READWRITE"
}

Generate & Sign Message

Call this API to get the message

Call API

Websockets & Webhooks

Coming soon...

Sign the above message by following signature guidelines mentioned according to the chain you are using

๐Ÿ’ป
โœจ
๐Ÿซ‚
here
  • Arrange Data
  • Generate & Sign Message
  • POSTGenerate message for sharing address book
  • Call API
  • POSTCreate address book request
  • Websockets & Webhooks

Generate message for sharing address book

post
Authorizations
Body
idintegerOptional
bookintegerRequired
tostringOptional
accessstring ยท enumRequiredPossible values:
pendingbooleanOptionalDefault: true
acceptedbooleanOptionalDefault: false
createdAtstring ยท date-timeOptional
updatedAtstring ยท date-timeRequired
Responses
200
Successful response
application/json
400Error
application/json
401Error
application/json
post
POST /v1/address-books/request/message HTTP/1.1
Host: sandbox-api.fetcch.xyz
secret-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 154

{
  "id": 1,
  "book": 1,
  "to": "text",
  "access": "READ",
  "pending": true,
  "accepted": true,
  "createdAt": "2025-05-12T04:45:41.519Z",
  "updatedAt": "2025-05-12T04:45:41.519Z"
}
{
  "data": {
    "message": "text",
    "request": {
      "id": 1,
      "bookId": 1,
      "book": {
        "id": 1,
        "name": "text",
        "addresses": [
          {
            "id": 1,
            "address": "text",
            "chainType": "EVM",
            "name": "text",
            "addressBookId": 1,
            "addressBook": "[Circular Reference]"
          }
        ],
        "walletIds": [
          {
            "id": 1,
            "walletId": "text",
            "wallet": "[Circular Reference]",
            "name": "text",
            "addressBookId": 1,
            "addressBook": "[Circular Reference]",
            "createdAt": "2025-05-12T04:45:41.519Z",
            "updatedAt": "2025-05-12T04:45:41.519Z"
          }
        ],
        "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",
                "rpc": [
                  "text"
                ],
                "type": "EVM",
                "shortName": "text",
                "infoURL": "text",
                "chainId": 1,
                "updatedAt": "2025-05-12T04:45:41.519Z",
                "createdAt": "2025-05-12T04:45:41.519Z"
              },
              "chainId": 1,
              "isMultisig": true,
              "isSmartContractWallet": true,
              "walletId": {
                "id": 1,
                "name": "text",
                "symbol": "text",
                "icon": "text",
                "rpc": [
                  "text"
                ],
                "type": "EVM",
                "shortName": "text",
                "infoURL": "text",
                "chainId": 1,
                "updatedAt": "2025-05-12T04:45:41.519Z",
                "createdAt": "2025-05-12T04:45:41.519Z"
              },
              "updatedAt": "2025-05-12T04:45:41.519Z",
              "createdAt": "2025-05-12T04:45:41.519Z"
            },
            "secondary": "[Circular Reference]",
            "nonce": 1,
            "currentSignature": "text",
            "previousSignature": "text",
            "isContract": true,
            "syncedAt": "2025-05-12T04:45:41.519Z",
            "createdAt": "2025-05-12T04:45:41.519Z"
          },
          "createdAt": "2025-05-12T04:45:41.519Z",
          "updatedAt": "2025-05-12T04:45:41.519Z"
        },
        "requests": [
          {
            "id": 1,
            "bookId": 1,
            "book": "[Circular Reference]",
            "toId": "text",
            "to": "[Circular Reference]",
            "access": "READ",
            "pending": true,
            "accepted": true,
            "createdAt": "2025-05-12T04:45:41.519Z",
            "updatedAt": "2025-05-12T04:45:41.519Z"
          }
        ],
        "createdAt": "2025-05-12T04:45:41.519Z",
        "updatedAt": "2025-05-12T04:45:41.519Z"
      },
      "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",
              "rpc": [
                "text"
              ],
              "type": "EVM",
              "shortName": "text",
              "infoURL": "text",
              "chainId": 1,
              "updatedAt": "2025-05-12T04:45:41.519Z",
              "createdAt": "2025-05-12T04:45:41.519Z"
            },
            "chainId": 1,
            "isMultisig": true,
            "isSmartContractWallet": true,
            "walletId": {
              "id": 1,
              "name": "text",
              "symbol": "text",
              "icon": "text",
              "rpc": [
                "text"
              ],
              "type": "EVM",
              "shortName": "text",
              "infoURL": "text",
              "chainId": 1,
              "updatedAt": "2025-05-12T04:45:41.519Z",
              "createdAt": "2025-05-12T04:45:41.519Z"
            },
            "updatedAt": "2025-05-12T04:45:41.519Z",
            "createdAt": "2025-05-12T04:45:41.519Z"
          },
          "secondary": "[Circular Reference]",
          "nonce": 1,
          "currentSignature": "text",
          "previousSignature": "text",
          "isContract": true,
          "syncedAt": "2025-05-12T04:45:41.519Z",
          "createdAt": "2025-05-12T04:45:41.519Z"
        },
        "createdAt": "2025-05-12T04:45:41.519Z",
        "updatedAt": "2025-05-12T04:45:41.519Z"
      },
      "access": "READ",
      "pending": true,
      "accepted": true,
      "createdAt": "2025-05-12T04:45:41.519Z",
      "updatedAt": "2025-05-12T04:45:41.519Z"
    }
  },
  "status": 1,
  "timestamp": "2025-05-12T04:45:41.519Z"
}

Create address book request

post
Authorizations
Body
idintegerOptional
signaturestringOptional
bookintegerRequired
tostringOptional
accessstring ยท enumRequiredPossible values:
pendingbooleanOptionalDefault: true
acceptedbooleanOptionalDefault: false
createdAtstring ยท date-timeOptional
updatedAtstring ยท date-timeRequired
Responses
200
Successful response
application/json
400Error
application/json
401Error
application/json
post
POST /v1/address-books/request HTTP/1.1
Host: sandbox-api.fetcch.xyz
secret-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 173

{
  "id": 1,
  "signature": "text",
  "book": 1,
  "to": "text",
  "access": "READ",
  "pending": true,
  "accepted": true,
  "createdAt": "2025-05-12T04:45:41.519Z",
  "updatedAt": "2025-05-12T04:45:41.519Z"
}
{
  "data": {
    "message": "text",
    "request": {
      "id": 1,
      "bookId": 1,
      "book": {
        "id": 1,
        "name": "text",
        "addresses": [
          {
            "id": 1,
            "address": "text",
            "chainType": "EVM",
            "name": "text",
            "addressBookId": 1,
            "addressBook": "[Circular Reference]"
          }
        ],
        "walletIds": [
          {
            "id": 1,
            "walletId": "text",
            "wallet": "[Circular Reference]",
            "name": "text",
            "addressBookId": 1,
            "addressBook": "[Circular Reference]",
            "createdAt": "2025-05-12T04:45:41.519Z",
            "updatedAt": "2025-05-12T04:45:41.519Z"
          }
        ],
        "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",
                "rpc": [
                  "text"
                ],
                "type": "EVM",
                "shortName": "text",
                "infoURL": "text",
                "chainId": 1,
                "updatedAt": "2025-05-12T04:45:41.519Z",
                "createdAt": "2025-05-12T04:45:41.519Z"
              },
              "chainId": 1,
              "isMultisig": true,
              "isSmartContractWallet": true,
              "walletId": {
                "id": 1,
                "name": "text",
                "symbol": "text",
                "icon": "text",
                "rpc": [
                  "text"
                ],
                "type": "EVM",
                "shortName": "text",
                "infoURL": "text",
                "chainId": 1,
                "updatedAt": "2025-05-12T04:45:41.519Z",
                "createdAt": "2025-05-12T04:45:41.519Z"
              },
              "updatedAt": "2025-05-12T04:45:41.519Z",
              "createdAt": "2025-05-12T04:45:41.519Z"
            },
            "secondary": "[Circular Reference]",
            "nonce": 1,
            "currentSignature": "text",
            "previousSignature": "text",
            "isContract": true,
            "syncedAt": "2025-05-12T04:45:41.519Z",
            "createdAt": "2025-05-12T04:45:41.519Z"
          },
          "createdAt": "2025-05-12T04:45:41.519Z",
          "updatedAt": "2025-05-12T04:45:41.519Z"
        },
        "requests": [
          {
            "id": 1,
            "bookId": 1,
            "book": "[Circular Reference]",
            "toId": "text",
            "to": "[Circular Reference]",
            "access": "READ",
            "pending": true,
            "accepted": true,
            "createdAt": "2025-05-12T04:45:41.519Z",
            "updatedAt": "2025-05-12T04:45:41.519Z"
          }
        ],
        "createdAt": "2025-05-12T04:45:41.519Z",
        "updatedAt": "2025-05-12T04:45:41.519Z"
      },
      "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",
              "rpc": [
                "text"
              ],
              "type": "EVM",
              "shortName": "text",
              "infoURL": "text",
              "chainId": 1,
              "updatedAt": "2025-05-12T04:45:41.519Z",
              "createdAt": "2025-05-12T04:45:41.519Z"
            },
            "chainId": 1,
            "isMultisig": true,
            "isSmartContractWallet": true,
            "walletId": {
              "id": 1,
              "name": "text",
              "symbol": "text",
              "icon": "text",
              "rpc": [
                "text"
              ],
              "type": "EVM",
              "shortName": "text",
              "infoURL": "text",
              "chainId": 1,
              "updatedAt": "2025-05-12T04:45:41.519Z",
              "createdAt": "2025-05-12T04:45:41.519Z"
            },
            "updatedAt": "2025-05-12T04:45:41.519Z",
            "createdAt": "2025-05-12T04:45:41.519Z"
          },
          "secondary": "[Circular Reference]",
          "nonce": 1,
          "currentSignature": "text",
          "previousSignature": "text",
          "isContract": true,
          "syncedAt": "2025-05-12T04:45:41.519Z",
          "createdAt": "2025-05-12T04:45:41.519Z"
        },
        "createdAt": "2025-05-12T04:45:41.519Z",
        "updatedAt": "2025-05-12T04:45:41.519Z"
      },
      "access": "READ",
      "pending": true,
      "accepted": true,
      "createdAt": "2025-05-12T04:45:41.519Z",
      "updatedAt": "2025-05-12T04:45:41.519Z"
    }
  },
  "status": 1,
  "timestamp": "2025-05-12T04:45:41.519Z"
}