code: function checkDifficulty(value) {
      var v = bignumber_1.bigNumberify(value);
      try {
          return v.toNumber();
      }
      catch (error) { }
      return null;
  }
docs: Returns the difficulty as a number, or if too large (i.e. PoA network) null