ethereum-lists/chains

Proposition to create a js lib to create link to explorers

開放

#478 建立於 2021年10月11日

 (4 則留言) (0 個反應) (0 位負責人)Kotlin (8,031 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (9,830 顆星)
PR 合併指標
 (平均合併 2天 8小時) (30 天內合併 17 個 PR)

描述

I am proposing to create a js lib to easily create link to explorers based on chainList schemas. Pseudo code:

const explorer=new Explorer(chainId);
const link= explorer.transaction('0x4119e48a39faf699f0362618fbdddd8e9fbc4d5d4552f3e2bb2f79003a17ff6e')
// output: https://myExplorer.io/tx/0x4119e48a39faf699f0362618fbdddd8e9fbc4d5d4552f3e2bb2f79003a17ff6e

const address=explorer.address('0xee61f5fb0db81d3a09392375ee96f723c0620e07');
//output https://myExplorer.io/address/0xee61f5fb0db81d3a09392375ee96f723c0620e07

What do you think?

貢獻者指南