File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ abstract class BitcoinNetworkAddress<T extends BasedUtxoNetwork> {
1919 case BitcoinNetwork .mainnet:
2020 case BitcoinNetwork .testnet:
2121 case BitcoinNetwork .testnet4:
22+ case BitcoinNetwork .signet:
2223 baseAddress = BitcoinAddress .fromBaseAddress (address,
2324 network: network as BitcoinNetwork );
2425 case LitecoinNetwork .mainnet:
@@ -66,6 +67,7 @@ abstract class BitcoinNetworkAddress<T extends BasedUtxoNetwork> {
6667 case BitcoinNetwork .mainnet:
6768 case BitcoinNetwork .testnet:
6869 case BitcoinNetwork .testnet4:
70+ case BitcoinNetwork .signet:
6971 baseAddress =
7072 BitcoinAddress (address, network: network as BitcoinNetwork );
7173 case LitecoinNetwork .mainnet:
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ abstract class BasedUtxoNetwork implements Enumerate {
4949 BitcoinNetwork .mainnet,
5050 BitcoinNetwork .testnet,
5151 BitcoinNetwork .testnet4,
52+ BitcoinNetwork .signet,
5253 LitecoinNetwork .mainnet,
5354 LitecoinNetwork .testnet,
5455 DashNetwork .mainnet,
@@ -145,6 +146,10 @@ class BitcoinNetwork implements BasedUtxoNetwork {
145146 static const BitcoinNetwork testnet4 = BitcoinNetwork ._(
146147 'bitcoinTestnet4' , CoinsConf .bitcoinTestNet, 'bitcoin:testnet4' );
147148
149+ /// Signet configuration with associated `CoinConf` .
150+ static const BitcoinNetwork signet = BitcoinNetwork ._(
151+ 'bitcoinSignet' , CoinsConf .bitcoinTestNet, 'bitcoin:signet' );
152+
148153 /// Overrides the `conf` property from `BasedUtxoNetwork` with the associated `CoinConf` .
149154 @override
150155 final CoinConf conf;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ class BtcApiConst {
44 static const String mempoolBaseURL = 'https://mempool.space/testnet/api' ;
55 static const String mempoolTestnet4BaseURL =
66 'https://mempool.space/testnet4/api' ;
7+ static const String mempoolSignetBaseURL = 'https://mempool.space/signet/api' ;
78 static const String blockstreamBaseURL =
89 'https://blockstream.info/testnet/api' ;
910 static const String blockCypherMainBaseURL =
Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ class APIConfig {
106106 case BitcoinNetwork .testnet4:
107107 baseUrl ?? = BtcApiConst .mempoolTestnet4BaseURL;
108108 break ;
109+ case BitcoinNetwork .signet:
110+ baseUrl ?? = BtcApiConst .mempoolSignetBaseURL;
111+ break ;
109112 default :
110113 throw DartBitcoinPluginException (
111114 'mempool does not support ${network .conf .coinName .name }' );
You can’t perform that action at this time.
0 commit comments