getAddress
Retrieves the account address for a chainId + keyPath. Call before creating transactions. Supported on every network.
Signature
// v2 (recommended)
await dcent.getAddress({ chainId, keyPath, addressFormat? })
// v1 positional still accepted (overload)
await dcent.getAddress(coinType, path, prefix?)
Parameters
| Field | Type | Required | Source | Notes |
|---|---|---|---|---|
chainId | string | Required | App | CAIP-2/19 |
keyPath | string | Required | App | BIP-44 |
addressFormat | enum | Optional | App | Bitcoin family only |
prefix? | string | null | Optional | App | Chain-specific extra value (e.g. czone / parachain prefix). Currently ignored on the v2 path — the connector forwards it but the bridge drops it until the multi-axis currency resolver lands; most chains omit it |
addressFormat values (Bitcoin family)
legacy · segwit-wrapped · segwit-native · taproot
warning
legacy and segwit-native resolve; segwit-wrapped / taproot are rejected with param_error — no currency variant with that format is registered under this chainId, and a firmware update does not change it.
info
signTransaction takes the same addressFormat enum in its payload. Use the same value for both calls so the address you showed the user is the one that signs.
Request / Response
Request
await dcent.getAddress({
chainId: 'eip155:1/slip44:60',
keyPath: "m/44'/60'/0'/0/0"
})
Response
{
"header": {
"version": "1.0",
"status": "success"
},
"body": {
"command": "getAddress",
"parameter": {
"address": "0x6A5C…"
}
}
}
Response fields
| Field | Type | Description |
|---|---|---|
address | string | The account address. Format is chain-specific — checksummed 0x… (EVM), bc1… / 1… (Bitcoin), base58 (Solana), etc. |
info
Public keys come from getPublicKey, not getAddress. Bitcoin segwit/legacy are disambiguated by addressFormat + keyPath.