Updated bitcoin block explorers to use mempool.space

This commit is contained in:
InnocuousFinch 2023-03-23 20:14:48 -05:00
parent 17463c4a4c
commit 906f84047c

View file

@ -6,13 +6,13 @@ Uri getBlockExplorerTransactionUrlFor({
}) { }) {
switch (coin) { switch (coin) {
case Coin.bitcoin: case Coin.bitcoin:
return Uri.parse("https://chain.so/tx/BTC/$txid"); return Uri.parse("https://mempool.space/tx/$txid");
case Coin.litecoin: case Coin.litecoin:
return Uri.parse("https://chain.so/tx/LTC/$txid"); return Uri.parse("https://chain.so/tx/LTC/$txid");
case Coin.litecoinTestNet: case Coin.litecoinTestNet:
return Uri.parse("https://chain.so/tx/LTCTEST/$txid"); return Uri.parse("https://chain.so/tx/LTCTEST/$txid");
case Coin.bitcoinTestNet: case Coin.bitcoinTestNet:
return Uri.parse("https://chain.so/tx/BTCTEST/$txid"); return Uri.parse("https://mempool.space/testnet/tx/$txid");
case Coin.dogecoin: case Coin.dogecoin:
return Uri.parse("https://chain.so/tx/DOGE/$txid"); return Uri.parse("https://chain.so/tx/DOGE/$txid");
case Coin.dogecoinTestNet: case Coin.dogecoinTestNet: