How to use the @hathor/wallet-lib.txApi function in @hathor/wallet-lib

To help you get started, we’ve selected a few @hathor/wallet-lib 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 HathorNetwork / hathor-wallet / src / screens / DecodeTx.js View on Github external
getConfirmationData = () => {
    hathorLib.txApi.getConfirmationData(this.state.transaction.hash, (data) => {
      this.setState({ confirmationData: data });
    }, (e) => {
      // Error in request
      console.log(e);
    });
  }
github HathorNetwork / hathor-wallet / src / screens / DecodeTx.js View on Github external
buttonClicked = () => {
    hathorLib.txApi.decodeTx(this.state.dataToDecode, (data) => {
      this.txDecoded(data);
    }, (e) => {
      // Error in request
      console.log(e);
    });
  }