2020-07-28 11:30:23 +02:00
@using BTCPayServer.Views.Server
@using System.Net.Http
2021-07-27 20:00:33 +02:00
@using BTCPayServer.Abstractions.Extensions
2020-07-28 11:30:23 +02:00
@model BTCPayServer.Services.Altcoins.Ethereum.Configuration.EthereumLikeConfiguration
@inject BTCPayNetworkProvider BTCPayNetworkProvider;
@inject IHttpClientFactory HttpClientFactory;
@{
Layout = "../_NavLayout.cshtml";
ViewData["NavPartialName"] = "../Server/_Nav";
ViewBag.MainTitle = "Server settings";
ViewData.SetActivePageAndTitle(ServerNavPages.Policies, $"ETH Chain {Model.ChainId} Configuration");
}
2021-04-20 09:16:21 +02:00
@if (!ViewContext.ModelState.IsValid)
2020-07-28 11:30:23 +02:00
{
<div asp-validation-summary="All" class="text-danger"></div>
}
<form method="post">
<div class="form-group">
<input type="hidden" asp-for="ChainId"/>
<div class="form-check">
2021-05-19 04:39:27 +02:00
<label asp-for="Web3ProviderUrl" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="Web3ProviderUrl" type="text" class="form-control"/>
<span asp-validation-for="Web3ProviderUrl" class="text-danger"></span>
<div>
Possible free options are
<ul>
2021-07-06 10:35:42 +02:00
<li><a href="https://medium.com/linkpool/release-of-public-ethereum-rpcs-f5dd57455d2e" target="_blank" rel="noreferrer noopener">linkpool.io</a> - Free, just set the url to <code>https://main-rpc.linkpool.io</code></li>
<li><a href="https://chainstack.com/" target="_blank" rel="noreferrer noopener">chainstack.com</a> - Free plan, choose shared public node</li>
<li><a href="https://infura.io/" target="_blank" rel="noreferrer noopener">infura.io</a> - Free tier but limited calls per day</li>
2020-07-28 11:30:23 +02:00
<li>Your own geth/openethereum node</li>
</ul>
</div>
</div>
<div class="form-check">
2021-05-19 04:39:27 +02:00
<label asp-for="Web3ProviderUsername" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="Web3ProviderUsername" type="text" class="form-control"/>
<span asp-validation-for="Web3ProviderUsername" class="text-danger"></span>
</div>
<div class="form-check">
2021-05-19 04:39:27 +02:00
<label asp-for="Web3ProviderPassword" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="Web3ProviderPassword" type="text" class="form-control"/>
<span asp-validation-for="Web3ProviderPassword" class="text-danger"></span>
</div>
</div>
<button type="submit" class="btn btn-primary" name="command" value="Save" id="saveButton">Save</button>
</form>