7 lines
233 B
JavaScript
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);
|
|
};
|