bigbuffet-rw/app/soapbox/features/crypto_donate/utils/block_explorer.js
2021-06-09 19:49:53 -05:00

7 lines
233 B
JavaScript

import blockExplorers from './block_explorers.json';
export const getExplorerUrl = (ticker, address) => {
const template = blockExplorers[ticker];
if (!template) return false;
return template.replace('{address}', address);
};