getAccountInfo
Returns the list of accounts registered on the device as V2AccountInfo objects. Returns a typed V1Response<AccountListV2Payload>; the connector forwards the bridge-enriched response unchanged (no transform).
Signature
await dcent.getAccountInfo(): Promise<V1Response<{ account: V2AccountInfo[] }>>
V2AccountInfo
Asset identity is established by four axes: chainId (full CAIP-19) + contractAddress (token vs native) + meta.addressFormat (encoding) + keyPath.
// resolved
{ chainId: string, // full CAIP-19 (no separate caip19 field)
contractAddress?: string,
keyPath: string,
label: string,
meta?: { customToken?, deviceCoinName?, addressFormat?, [k:string]: unknown } }
// unresolved (unknown to the bridge)
{ chainId: null, unresolved: true,
raw: { coin_group, coin_name, address_path, label } }
Response
{
"header": {
"version": "1.0",
"status": "success"
},
"body": {
"command": "getAccountInfo",
"parameter": {
"account": [
{
"chainId": "eip155:1/slip44:60",
"keyPath": "m/44'/60'/0'/0/0",
"label": "ETH 0"
}
]
}
}
}
Response fields
parameter.account is an array of V2AccountInfo. Each item is one of two shapes:
| Field | Type | Description |
|---|---|---|
chainId | string | null | Full CAIP-19 for a resolved account; null when the bridge could not resolve it (an unrecognized coin). |
contractAddress | string | Optional Token asset address. Absent for native coins. |
keyPath | string | The device address path (BIP-44). |
label | string | The DCENT wallet label for the account. |
meta | object | Optional Evolving metadata bag — customToken, deviceCoinName, addressFormat, plus forward-compatible keys. |
unresolved | boolean | true only on unresolved items; those carry raw: { coin_group, coin_name, address_path, label } instead of the resolved fields. |