How to use the trezor-connect.default.ethereumGetAddress function in trezor-connect

To help you get started, we’ve selected a few trezor-connect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github floating / frame / app / flex / trezor / index.js View on Github external
ethereumGetAddress (path, showOnTrezor = false, cb) {
    TrezorConnect.ethereumGetAddress({ device: this.device, path, showOnTrezor }).then(res => {
      if (!res.success) return cb(new Error(res.payload.error))
      cb(null, res.payload)
    }).catch(err => cb(err))
  }
github rate-engineering / rate3-monorepo / packages / wallet / Trezor.js View on Github external
async getPublicKey(path) {
    let result;
    const params = { path };
    if (this.currency === 'ethereum') {
      result = await TrezorConnect.ethereumGetAddress(params);
    } else {
      result = await TrezorConnect.stellarGetAddress(params);
    }
    return result;
  }