parent
3f9953f4b3
commit
5b6c1444b3
@ -0,0 +1,13 @@ |
||||
const transactionDetailsLinks = { |
||||
Main: 'https://www.etherscan.io/tx/', |
||||
Rinkeby: 'https://rinkeby.etherscan.io/tx/', |
||||
Ropsten: 'https://ropsten.etherscan.io/tx/', |
||||
Kovan: 'https://kovan.etherscan.io/tx/', |
||||
Goerli: 'https://goerli.etherscan.io/tx/' |
||||
} |
||||
|
||||
export function etherScanLink (network: string, hash: string): string { |
||||
if (transactionDetailsLinks[network]) { |
||||
return transactionDetailsLinks[network] + hash |
||||
} |
||||
} |
Loading…
Reference in new issue