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.
| Method | DCENT Biometric Wallet | DCENT X |
|---|---|---|
getPublicKey | 2.35.0 or higher | 1.0.0 or higher |
Parameters
| Field | Type | Required | Source | Description |
|---|---|---|---|---|
chainId | string | Required | App | CAIP-19 chain id of any supported chain — e.g. eip155:1/slip44:60 |
keyPath | string | Required | App | BIP32 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
| Field | Type | Description |
|---|---|---|
body.command | string | getPublicKey |
parameter.keyPath | string | The path you requested, returned verbatim (not re-derived) |
parameter.publicKey | string | Public 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": "…"
}
}
}