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 with at least two levels (e.g. m/44'/0') — DCENT X rejects a shorter path. |
bip32name | string | BIP-32 master-key derivation string. Required by the TypeScript signature. A missing or non-string value is normalised by the bridge to '', which is sent to the device as is. Pass the derivation string your chain expects (e.g. 'Bitcoin seed') explicitly. |
await dcent.getXPUB("m/44'/0'/0'", 'Bitcoin seed')
Response
{
"header": { "version": "1.0", "status": "success", "response_from": "getXPUB" },
"body": {
"command": "getXPUB",
"parameter": {
"public_key": "xpub6C…"
}
}
}
| Field | Type | Description |
|---|---|---|
public_key | string | An extended public key in Base58Check form. On DCENT X with bip32name: 'Bitcoin seed', the version follows the path's purpose: m/49' gives ypub… (testnet upub…), m/84' gives zpub… (testnet vpub…), and other paths give xpub…. The device sends the Base58 string as bytes, and the bridge returns it as text. |
info
Unlike getAddress, getXPUB takes positional arguments (not a chainId object).