tonGetAddress
Use requirement
Firmware version required
Touch: 4.10.0
TON: 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.tonGetAddress(connectId, deviceId, {
path: "m/44'/607'/0'",
showOnOneKey: true,
walletVersion: 3,
isBounceable: false,
isTestnetOnly: false
});Params
Exporting single address
path- requiredstring | Array<number>minimum length is 3. read moreshowOnOneKey- optionalbooleandetermines if address will be displayed on device. Default is set totruewalletVersion- optionalTonWalletVersionTON wallet version (default: 3)isBounceable- optionalbooleanwhether address is bounceable (default: false)isTestnetOnly- optionalbooleanwhether to use testnet (default: false)
Exporting bundle of addresses
bundle-Arrayof Objects withpathandshowOnOneKeyfields
Example
Result
Result with only one address
Result with bundle of addresses sorted by FIFO
Error
Last updated
Was this helpful?