starcoinGetAddress
Starcoin: get address
Display requested address derived by given BIP32 path on device and returns it to caller. User is presented with a description of the requested key and asked to confirm the export on OneKey.
const response = await HardwareSDK.starcoinGetAddress(connectId, deviceId, params)Params
Exporting single address
path— requiredstring | Array<number>minimum length is 5. more informationshowOnOneKey— optionalbooleandetermines if address will be displayed on device. Default is set totrue
Exporting bundle of addresses
bundle-Arrayof Objects withpathandshowOnOneKeyfields
Example
Display address of first starcoin account:
HardwareSDK.starcoinGetAddress(connectId, deviceId, {
path: "m/44'/101010'/0'/0/0"
});Return a bundle of starcoin addresses without displaying them on device:
Result
Result with only one address
Result with bundle of addresses sorted by FIFO
Error
Last updated
Was this helpful?