How to use the @hathor/wallet-lib.axios 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 / App.js View on Github external
componentDidMount() {
    hathorLib.WebSocketHandler.setup();
    hathorLib.WebSocketHandler.on('wallet', this.handleWebsocket);
    hathorLib.WebSocketHandler.on('storage', this.handleWebsocketStorage);

    hathorLib.axios.registerNewCreateRequestInstance(createRequestInstance);

    hathorLib.WebSocketHandler.on('addresses_loaded', this.addressesLoadedUpdate);
    hathorLib.WebSocketHandler.on('is_online', this.isOnlineUpdate);
    hathorLib.WebSocketHandler.on('reload_data', this.reloadData);
  }