BTCPayNetwork

btcpayserver · payments, cryptocurrency, segwit, electrum, wallet-config

Represents a cryptocurrency network configuration in BTCPay Server, defining settings like SegWit support, Electrum mappings, and wallet features for payment processing.

    public class BTCPayNetwork : BTCPayNetworkBase
    {
        public Network NBitcoinNetwork { get { return NBXplorerNetwork?.NBitcoinNetwork; } }
        public NBXplorer.NBXplorerNetwork NBXplorerNetwork { get; set; }
        public bool SupportRBF { get; set; }
        public string LightningImagePath { get; set; }
        public BTCPayDefaultSettings DefaultSettings { get; set; }
        public KeyPath CoinType { get; set; }

        public Dictionary<uint, DerivationType> ElectrumMapping = new Dictionary<uint, DerivationType>();
        public BTCPayNetwork SetDefaultElectrumMapping(ChainName chainName)
        {
            //https://github.com/spesmilo/electrum/blob/11733d6bc271646a00b69ff07657119598874da4/electrum/constants.py
            ElectrumMapping = chainName == ChainName

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key