code: function getJsonWalletAddress(json) {
      if (isCrowdsaleWallet(json)) {
          try {
              return address_1.getAddress(JSON.parse(json).ethaddr);
          }
          catch (error) {
              return null;
          }
      }
      if (isSecretStorageWallet(json)) {
          try {
              return address_1.getAddress(JSON.parse(json).address);
          }
          catch (error) {
              return null;
          }
      }
      return null;
  }
docs: export function isJsonWallet(json: string): boolean { return (isSecretStorageWallet(json) || isCrowdsaleWallet(json)); }