btcGetAddress
Bitcoin: 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 OneKey.
Params
Exporting single address
path
— requiredstring | Array<number>
minimum length is 3. read moreshowOnOneKey
— optionalboolean
determines if address will be displayed on device. Default is set totrue
coin
- optionalstring
determines network definition specified in coins.json file. Coinshortcut
,name
orlabel
can be used. Ifcoin
is not set API will try to get network definition frompath
.multisig
- optional MultisigRedeemScriptType, redeem script information (multisig addresses only)scriptType
- optional InputScriptType, address script type
Exporting bundle of addresses
bundle
-Array
of Objects withpath
,showOnOneKey
,coin
fields
Get different types of addresses
获取不同类型的 BTC 地址需要不同的 Path 参数。
Example
Display third address of first bitcoin account:
Return a bundle of addresses from first bitcoin account without displaying them on device:
Result
Result with only one address
Result with bundle of addresses
Error
Last updated