dnxGetAddress
Dynex: get address
Display requested address derived by given BIP32 path on device and returns it to caller. User is asked to confirm the export on Ukey Wallet.
const result = await HardwareSDK.dnxGetAddress(connectId, deviceId, params);
Use requirement
- Firmware version required
- UKey Lite 24 / UKey Lite 25 / UKey Core 26: 3.8.0
Parameters
connectId: string
- Unique identifier for the connection
deviceId: string
- Unique identifier for the hardware device
params: object
- path:
string- BIP32 path (e.g. "m/44'/29538'/0'/0/0") [required] - showOnUKey:
boolean- Whether to display address on device (default: true)
For batch addressing:
- bundle: Array of objects with above parameters
Example
// Get single address
const response = await HardwareSDK.dnxGetAddress("connect1", "device1", {
path: "m/44'/29538'/0'/0/0",
showOnUKey: true,
});
// Get multiple addresses
const bundle = await HardwareSDK.dnxGetAddress("connect1", "device1", {
bundle: [
{ path: "m/44'/29538'/0'/0/0", showOnUKey: false },
{ path: "m/44'/29538'/0'/0/1", showOnUKey: false },
],
});
Returns
Success response for single address:
{
success: true,
payload: {
address: string, // Dynex address
path: string // BIP32 path used
}
}
Success response for multiple addresses:
{
success: true,
payload: [
{ address: string, path: string },
{ address: string, path: string }
]
}
Error response:
{
success: false,
payload: {
error: string,
code: number
}
}
Firmware Requirements
- Minimum firmware version: 3.8.0