Dogecoin (DOGE)
UTXO-based signing, identical in shape to Bitcoin. Provide the previous transactions for the inputs you spend; the device signs each input by its keyPath. Dogecoin is legacy-only — your account is base58 P2PKH (prefix D); recipients may also be P2SH. DCENT does not support SegWit for Dogecoin.
| Field | Value |
|---|---|
| Family | Bitcoin (UTXO) |
| coinType | 3 |
| keyPath | m/44'/3'/<accountIdx>'/0/0 |
| addressFormat | legacy (P2PKH) |
| chainId | bip122:1a91e3dace36e2be3bf030a65679fe82/slip44:3 |
Supported Methods
| Method | Supported |
|---|---|
| getAddress | ✓ |
| signTransaction | ✓ |
| signMessage | ✗ |
| signTypedData | ✗ |
| signData | ✗ |
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 |
|---|---|---|
getAddress | 2.3.0 or higher | 1.0.0 or higher |
signTransaction | 2.3.0 or higher | 1.0.0 or higher |
addressFormat
| Format | Path | Status |
|---|---|---|
legacy (P2PKH, base58 D…) | m/44'/3'/0'/0/0 | Supported |
segwit-native (P2WPKH) | — | Not supported |
Dogecoin uses the same input/output payload as Bitcoin — the chainId, keyPath (coinType 3'), unit (koinu) and address format differ, along with the defaults and restrictions below. Use txType: "p2pkh" for both inputs and outputs.
getAddress — account address
Retrieves the Dogecoin account address for a chainId + keyPath. Returns a base58 P2PKH address (prefix D). Call this before building a transaction.
| Field | Type | Required | Source | Notes |
|---|---|---|---|---|
chainId | string | Required | App | CAIP-19; fixed for Dogecoin |
keyPath | string | Required | App | BIP-44, coinType 3' |
addressFormat | enum | Optional | App | Dogecoin supports legacy (P2PKH) only — omit it or send legacy; the legacy D… address is returned |
Request
await dcent.getAddress({
chainId: 'bip122:1a91e3dace36e2be3bf030a65679fe82/slip44:3',
keyPath: "m/44'/3'/0'/0/0"
})
Response
| Field | Type | Notes |
|---|---|---|
body.parameter.address | string | The Dogecoin account address — base58 P2PKH, prefix D |
body.command | string | getAddress |
header.status | string | success on completion |
{
"header": {
"version": "1.0",
"status": "success",
"response_from": "getAddress"
},
"body": {
"command": "getAddress",
"parameter": {
"address": "D…"
}
}
}
signTransaction
payload.transaction:
{
"inputs": [
{
"rawTransaction": "<prev tx hex>",
"index": 0,
"txType": "p2pkh",
"keyPath": "m/44'/3'/0'/0/0",
"sequence": 4294967295
}
],
"outputs": [
{
"txType": "p2pkh",
"amount": "100000",
"addresses": [
"D…"
]
}
]
}
| Field | Type | Required | Source | Unit | Notes |
|---|---|---|---|---|---|
inputs[].rawTransaction | hex | Required-Real | Wallet | — | Full prev-tx hex of the UTXO; must be device-owned |
inputs[].index | number | Required | App | — | UTXO output index |
inputs[].txType | enum | Required | App | — | p2pkh (Dogecoin is legacy-only) |
inputs[].keyPath | string | Required-Real | Wallet | — | Path that signs this input (coinType 3') |
inputs[].sequence | number | Optional | App | — | When omitted, no sequence is sent and DCENT X then uses 0xffffffff (only Bitcoin mainnet defaults to 0xfffffffd, opt-in RBF). Also note the first input's value applies to the whole transaction (a first-input value of 0 is not sent, so the device's default applies). |
outputs[].txType | enum | Required | App | — | p2pkh for a D… recipient. The destination script type is taken from the recipient address (addresses[0]); txType is only checked against the allowed values (p2pkh / p2sh / p2wpkh / p2wsh / change) and marks the change output. p2tr, or a Taproot recipient address (bc1p… / tb1p…), is rejected with -32602 |
outputs[].amount | string | Required | App | koinu | Output value (1 DOGE = 1e8 koinu) |
outputs[].addresses | string[] | Required-Real | App | — | base58 — a P2PKH (D…) or P2SH recipient. Only addresses[0] is signed (later entries are not signed, but a Bitcoin Taproot address (bc1p… / tb1p…) among them is rejected with -32602 — send a single address), and exactly one non-change output is allowed — more than one destination is rejected with param_error. Use a second output with txType: 'change' for change. The change output's addresses[0] is a BIP-32 derivation path on your own account (for example m/44'/3'/0'/1/0), not an address — the device derives the change address from that path itself. Use a path on the account you are signing with; the full rule is on the Bitcoin page. |
Request
await dcent.sign({
method: 'signTransaction',
chainId: 'bip122:1a91e3dace36e2be3bf030a65679fe82/slip44:3',
payload: {
keyPath: "m/44'/3'/0'/0/0",
transaction: {
inputs: [
{
rawTransaction: '<prev tx hex>',
index: 0,
txType: 'p2pkh',
keyPath: "m/44'/3'/0'/0/0",
sequence: 4294967295
}
],
outputs: [
{
txType: 'p2pkh',
amount: '100000',
addresses: [
'D…'
]
}
]
}
}
})
Response
| Field | Type | Notes |
|---|---|---|
body.parameter.signature | hex | Broadcast-ready serialized signed transaction — the full Dogecoin raw tx hex, not a bare signature. Submit directly to a Dogecoin node (sendrawtransaction). |
body.command | string | signTransaction |
header.status | string | success on completion |
{
"header": {
"version": "1.0",
"status": "success",
"response_from": "signTransaction"
},
"body": {
"command": "signTransaction",
"parameter": {
"signature": "<signed raw tx hex>"
}
}
}
Variant — multi-step builder
As an alternative to the single-call form, the Bitcoin-family stateful builder is available (same API, Dogecoin keyPath / values):
const tx = dcent.getBitcoinTransactionObject()
dcent.addBitcoinTransactionInput(tx, prevTxHex, utxoIndex, 'p2pkh', "m/44'/3'/0'/0/0")
dcent.addBitcoinTransactionOutput(tx, 'p2pkh', 100000, 'D…')
// then sign
Common Mistakes
Wrong coinType in keyPath — Dogecoin uses m/44'/3', not Bitcoin's m/44'/0'. Using a SegWit / bech32 address — DCENT does not support SegWit for Dogecoin; recipients are base58 (P2PKH D… or P2SH). Missing change output — unspent input value becomes miner fee. Amounts not in koinu — 1 DOGE = 1e8 koinu.