Derive
Returns an AccountIdentifier for a given public key in the ICRC-1 ledger context.
Body
Responses
200
Account identifier derived
application/json
500
Internal server error
post
POST /v1/<YOUR_API_KEY_HERE>/construction/derive HTTP/1.1
Host: icrc-mainnet.icp.validationcloud.io
Content-Type: application/json
Accept: */*
Content-Length: 295
{
"network_identifier": {
"blockchain": "Internet Computer",
"network": "mxzaz-hqaaa-aaaar-qaada-cai",
"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?