Save Address to Whitelist

Fetching an existing coin/asset blockchain address within a wallet

Adding/Saving an Address to The Whitelist

The CreateContactCryptoAccount mutation allows API users to save an un-recognized address to the contact's whitelist. This action essentially means that you can name an address while labeling it to an existing contact in the organization.

The contact must exist first, in order to create a new contact, follow the steps in the Create New Contact page..

mutation CreateContactCryptoAccount($data: ContactCryptoAccountCreateInput!) {
  createContactCryptoAccount(data: $data) {
    address
    name
    contact {
      id
      name
    }
    id
  }
}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (ContactCryptoAccountCreateInput object)

Name
Type
Description

address*

string

Address to be saved

contactName*

string

Existing contact's name

name*

string

Address name

organizationId

string

Organization ID

Example body:

{
  "data": {
    "address": "0x39be337b9c1e91182d9c2c0e63233e9f2db4d9dc",
    "contactName": "Example Tests",
    "name": "Test address",
    "organizationId": "clllyfclz0007btqk0iigw1n1"
  }
}

Response

Return values:

Name
Type
Description

address

String

API Wallet Address

{
  "data": {
    "createContactCryptoAccount": {
      "address": "0x39be337b9c1e91182d9c2c0e63233e9f2db4d9dd",
      "name": "Test address name",
      "contact": {
        "id": "clvmgp4h1002j88014aw1k6uf",
        "name": "Test Contact"
      },
      "id": "clvmgp4h1002h8801lx7oyycg"
    }
  }
}

In the query's response, you will receive the created API wallet address for the wallet, asset & blockchain IDs given in the body.

Try it out!