getXPUB
Returns a BIP-32 extended public key (XPUB) for a derivation path. Positional arguments — identical to v1.
Signature
await dcent.getXPUB(key: string, bip32name: string): Promise<V1Response>
Requirements
Minimum firmware. 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 |
|---|---|---|
getXPUB | 1.2.0 or higher | 1.0.0 or higher |
Parameters
| Field | Type | Notes |
|---|---|---|
key | string | BIP-44 key path. Must be hardened to at least two depths (e.g. m/44'/0'). |
bip32name | string | BIP-32 master-key derivation string. Optional in practice — if you omit it the bridge normalises it to an empty string ('') and the device uses its default seed — not 'Bitcoin seed'. |
await dcent.getXPUB("m/44'/0'/0'", 'Bitcoin seed')
Response
{
"header": { "version": "1.0", "status": "success" },
"body": {
"command": "getXPUB",
"parameter": {
"public_key": "xpub6C…"
}
}
}
| Field | Type | Description |
|---|---|---|
public_key | string | The BIP-32 extended public key in Base58Check form (xpub6…). The device returns it as raw hex, which the bridge decodes to the standard xpub string. |
info
Unlike getAddress, getXPUB takes positional arguments (not a chainId object).