bigbuffet-rw/app/soapbox/features/crypto_donate/utils/block_explorer.js

8 lines
233 B
JavaScript
Raw Normal View History

2021-06-09 17:49:53 -07:00
import blockExplorers from './block_explorers.json';
export const getExplorerUrl = (ticker, address) => {
const template = blockExplorers[ticker];
if (!template) return false;
return template.replace('{address}', address);
};