Merge pull request #434 from InnocuousFinch/update-btc-blk-explr

Update bitcoin block explorers to use mempool.space
This commit is contained in:
julian-CStack 2023-04-18 17:01:19 -06:00 committed by GitHub
commit 73261d85a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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