Skip to main content

getPublicKey

Retrieves account public keys for any supported chain — a single { keyPath, publicKey } for the path you asked for. This verb was split out of getAddress, which no longer returns any public key.

info

All supported families return the same shape — a single { keyPath, publicKey }.

Requirements

Minimum firmware for each method. The two models are on different version lines, so DCENT Biometric Wallet and DCENT X are listed separately (the numbers are not comparable across models). Below this the request returns the firmware-update error (5005) and the bridge prompts to update.

MethodDCENT Biometric WalletDCENT X
getPublicKey2.35.0 or higher1.0.0 or higher

Parameters

FieldTypeRequiredSourceDescription
chainIdstringRequiredAppCAIP-19 chain id of any supported chain — e.g. eip155:1/slip44:60
keyPathstringRequiredAppBIP32 path of the key to fetch. Must resolve to a currency for this chainId, otherwise -32602.

Request

await dcent.getPublicKey({
chainId: 'eip155:1/slip44:60',
keyPath: "m/44'/60'/0'/0/0"
})

Response

FieldTypeDescription
body.commandstringgetPublicKey
parameter.keyPathstringThe path you requested, returned verbatim (not re-derived)
parameter.publicKeystringPublic key hex, no 0x prefix. Length/encoding follow the chain's curve (e.g. secp256k1 compressed 33 bytes, ed25519 32 bytes).
{
"header": { "version": "1.0", "status": "success" },
"body": {
"command": "getPublicKey",
"parameter": {
"keyPath": "m/44'/60'/0'/0/0",
"publicKey": "…"
}
}
}