Derive

Derive account address from public key

post

Returns an AccountIdentifier for a given public key.

Body
Responses
200
Account identifier derived
application/json
post
POST /v1/<YOUR_API_KEY_HERE>/construction/derive HTTP/1.1
Host: icp-mainnet.icp.validationcloud.io
Content-Type: application/json
Accept: */*
Content-Length: 288

{
  "network_identifier": {
    "blockchain": "Internet Computer",
    "network": "00000000000000020101",
    "sub_network_identifier": {
      "network": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  },
  "public_key": {
    "hex_bytes": "text",
    "curve_type": "text"
  },
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "address": "text",
  "account_identifier": {
    "address": "text",
    "sub_account": {
      "address": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    },
    "metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  },
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

Was this helpful?