Giter Site home page Giter Site logo

Comments (16)

freeatnet avatar freeatnet commented on June 19, 2024 2

@ligi I see what you mean now. I suspect only a few chains will have multiple explorers and, conversely, few explorers will support multiple chains. I’ll try to gather up some links.

from chains.

freeatnet avatar freeatnet commented on June 19, 2024

Would it be reasonable to assume that all chain explorers would allow access by transaction hash and by wallet address of canonical formats?

If so, we could introduce something like key "explorers": [ <ExplorerEntry>, … ], with explorer entry consisting of:

{
  "name": "Etherscan",
  "logo": "", # optional
  "homepage": "https://etherscan.io/",
  "address": "https://etherscan.io/address/${address}",
  "tx": "https://etherscan.io/address/${txHash}",
  "block": "https://etherscan.io/address/${blockNumber}", # optional?
  "token": "https://etherscan.io/token/${address}" # definitely optional
}

from chains.

ligi avatar ligi commented on June 19, 2024

Yes - I think this makes sense - perhaps even as a separate repo/dataset

from chains.

ligi avatar ligi commented on June 19, 2024

wait no - sometimes the chain is part of the URL - that makes things more complicated.
But adding it to every chain is a lot of repitition

from chains.

freeatnet avatar freeatnet commented on June 19, 2024

@ligi Sorry, do you mean adding a list of links would be a lot of repetition?

Also, would you happen to have some examples of other explorers?

from chains.

ligi avatar ligi commented on June 19, 2024

yea it is then not using the structure of the urls like here:

https://github.com/komputing/KEthereum/tree/master/blockscout
https://github.com/komputing/KEthereum/tree/master/etherscan

these are also the only blockexplorers I worked with

but perhaps it is best to keep it this simple and ignore the WETness

from chains.

Garito avatar Garito commented on June 19, 2024

Hi
Any progress with this?

from chains.

pedrouid avatar pedrouid commented on June 19, 2024

Actually I've recently written a proposal regarding this topic: ethereum/EIPs#3091

Perhaps we could reach out to projects like Blockscout to provide corresponding redirects

Meanwhile we could already include Etherscan as it already matches the proposed API for EIP-3091

from chains.

Garito avatar Garito commented on June 19, 2024

Nice... can't wait for it (kid face waiting like if it was the new toy)
Thanks

from chains.

Garito avatar Garito commented on June 19, 2024

Now that metamask has added wallet_addEthereumChain with explorers included, is more than ever important to add this data
https://docs.metamask.io/guide/rpc-api.html#wallet-addethereumchain
Any idea when will be added?

from chains.

ligi avatar ligi commented on June 19, 2024

How do you see this repo being used in combination with MM?

from chains.

Garito avatar Garito commented on June 19, 2024

My to cents on the explorers I am using right now:

{
  1: 'https://etherscan.io/${type}/${value}',
  3: 'https://ropsten.etherscan.io/${type}/${value}',
  4: 'https://rinkeby.etherscan.io/${type}/${value}',
  5: 'https://gorli.etherscan.io/${type}/${value}',
  42: 'https://kovan.etherscan.io/${type}/${value}',
  56: 'https://bscscan.com/${type}/${value}',
  97: 'https://testnet.bscscan.com/${type}/${value}'
}

where type is the type of the request. I am using tx and address right now but I have noticed there are others you can use (would be nice if someone has found the complete list and share it here)

and value is the value of what you are looking for. The transaction hash for type tx or the address of the account or token for the type address

from chains.

Garito avatar Garito commented on June 19, 2024

Seems that this is enough:

{
  1: 'https://etherscan.io',
  3: 'https://ropsten.etherscan.io',
  4: 'https://rinkeby.etherscan.io',
  5: 'https://gorli.etherscan.io',
  42: 'https://kovan.etherscan.io',
  56: 'https://bscscan.com',
  97: 'https://testnet.bscscan.com'
}

from chains.

ligi avatar ligi commented on June 19, 2024

OK need to push this forward. I suggest the following:

{
    ...
	"explorers": [{
		"name": "etherscan",
		"url": "https://etherscan.io",
		"icon": [
		  // same as for chain icons
		],
		"standard": "EIP3091"
	}]
}

name, URL and standard are mandatory. icon can be an empty array
using @pedrouid s standard here prevents the duplication and is a forcing function to get block-explorers to unify.
wondering though if EIP3091 should be lifted out to an CAIP before we use it - would be more consistent and unopinionated I think

from chains.

tjayrush avatar tjayrush commented on June 19, 2024

This doesn't really work for the case where the explorer is local such as ours (TrueBlocks).

Our explorer's URL is https://localhost:${port}/${type}/${value}.

But then what happens if a user has two such local explorers? Not both can be in your list since the name fields would be different (both would want to use localhost).

Perhaps it's okay to duplicates in the list based on URL? (Most likely not).

Don't forget that some explorers are actually decentralized and have nothing to do with a web 2.0 website.

from chains.

tjayrush avatar tjayrush commented on June 19, 2024

This doesn't really work for the case where the explorer is local such as ours (TrueBlocks).

Our explorer's URL is https://localhost:${port}/${type}/${value}.

But then what happens if a user has two such local explorers? Not both can be in your list since the name fields would be different (both would want to use localhost).

Perhaps it's okay to duplicates in the list based on URL? (Most likely not).

Don't forget that some explorers are actually decentralized and have nothing to do with a web 2.0 website.

Bump?

from chains.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.