diff --git a/BTCPayServer.Common/Altcoins/BTCPayNetworkProvider.Althash.cs b/BTCPayServer.Common/Altcoins/BTCPayNetworkProvider.Althash.cs
new file mode 100644
index 000000000..3b0c9be57
--- /dev/null
+++ b/BTCPayServer.Common/Altcoins/BTCPayNetworkProvider.Althash.cs
@@ -0,0 +1,29 @@
+using NBitcoin;
+using NBXplorer;
+
+namespace BTCPayServer
+{
+ public partial class BTCPayNetworkProvider
+ {
+ public void InitAlthash()
+ {
+ var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("HTML");
+ Add(new BTCPayNetwork()
+ {
+ CryptoCode = nbxplorerNetwork.CryptoCode,
+ DisplayName = "Althash",
+ BlockExplorerLink = NetworkType == ChainName.Mainnet ? "https://explorer.htmlcoin.com/api/tx/{0}" : "https://explorer.htmlcoin.com/api/tx/{0}",
+ NBXplorerNetwork = nbxplorerNetwork,
+ UriScheme = "htmlcoin",
+ DefaultRateRules = new[]
+ {
+ "HTML_X = HTML_USD",
+ "HTML_USD = hitbtc(HTML_USD)"
+ },
+ CryptoImagePath = "imlegacy/althash.png",
+ DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
+ CoinType = NetworkType == ChainName.Mainnet ? new KeyPath("88'") : new KeyPath("1'")
+ });
+ }
+ }
+}
diff --git a/BTCPayServer.Common/BTCPayNetworkProvider.cs b/BTCPayServer.Common/BTCPayNetworkProvider.cs
index c010bd5fc..c3ca9b664 100644
--- a/BTCPayServer.Common/BTCPayNetworkProvider.cs
+++ b/BTCPayServer.Common/BTCPayNetworkProvider.cs
@@ -51,6 +51,7 @@ namespace BTCPayServer
InitMonacoin();
InitDash();
InitFeathercoin();
+ InitAlthash();
InitGroestlcoin();
InitViacoin();
InitMonero();
diff --git a/BTCPayServer.Common/BTCPayServer.Common.csproj b/BTCPayServer.Common/BTCPayServer.Common.csproj
index 40780e0bc..c94ff5a5d 100644
--- a/BTCPayServer.Common/BTCPayServer.Common.csproj
+++ b/BTCPayServer.Common/BTCPayServer.Common.csproj
@@ -4,9 +4,9 @@
-
+
-
\ No newline at end of file
+
diff --git a/BTCPayServer.Rating/Currencies.json b/BTCPayServer.Rating/Currencies.json
index 9fcf31523..cbb7d2c5a 100644
--- a/BTCPayServer.Rating/Currencies.json
+++ b/BTCPayServer.Rating/Currencies.json
@@ -1266,6 +1266,13 @@
"symbol":null,
"crypto":true
},
+ {
+ "name":"Althash",
+ "code":"HTML",
+ "divisibility":8,
+ "symbol":null,
+ "crypto":true
+ },
{
"name":"CHC",
"code":"CHC",
diff --git a/BTCPayServer/wwwroot/imlegacy/althash.png b/BTCPayServer/wwwroot/imlegacy/althash.png
new file mode 100644
index 000000000..060d16710
Binary files /dev/null and b/BTCPayServer/wwwroot/imlegacy/althash.png differ