Skip to main content

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.

MethodDCENT Biometric WalletDCENT X
getXPUB1.2.0 or higher1.0.0 or higher

Parameters

FieldTypeNotes
keystringBIP-44 key path. Must be hardened to at least two depths (e.g. m/44'/0').
bip32namestringBIP-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…"
}
}
}
FieldTypeDescription
public_keystringThe 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).