bitboxBtcPubRequest method

  1. @override
BuBytes bitboxBtcPubRequest({
  1. required int coin,
  2. required BuBytes pathU32,
  3. required int xpubType,
  4. required bool display,
})
override

BitBox02: builds Request{btc_pub}; throws CryptoException on native failure.

Implementation

@override
BuBytes bitboxBtcPubRequest({
  required int coin,
  required BuBytes pathU32,
  required int xpubType,
  required bool display,
}) {
  return api
      .bitboxBtcPubRequest(
        coin: coin,
        pathU32: pathU32,
        xpubType: xpubType,
        display: display,
      )
      .unwrapOrThrowCryptoError();
}