Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search functionality for smart contracts in the block explorer #3187

Open
6 tasks
lufa23 opened this issue Dec 13, 2024 · 0 comments
Open
6 tasks

Search functionality for smart contracts in the block explorer #3187

lufa23 opened this issue Dec 13, 2024 · 0 comments
Labels
module:explorer Issues related to explorer module type:feature implementing a new feature

Comments

@lufa23
Copy link

lufa23 commented Dec 13, 2024

Summary

Enable users to search for smart contract IDs in the block explorer, alongside existing Block/Hash searches, to provide detailed information about smart contracts directly within the block explorer interface. If the searched smart contract ID does not match a contract, display a user-friendly error message (e.g., “Smart contract ID not found.”).

Possible solution design or implementation

In the block explorer's search bar, we should add support for searching smart contract IDs.

If the entered ID corresponds to a deployed smart contract, redirect the user to a detailed Smart Contract Overview Page.

The Smart Contract Overview Page should display useful information such as:

  • contract name (e.g., "Tether")
  • contract type (e.g., TC, XC ...)
  • contract address
  • number of token decimals (if applicable)
  • maximum supply (if applicable)
  • circulating supply (if applicable)

Potentially, it would be great if we could show other metadata such as

  • Number of total transfers
  • List of recent transactions involving the contract
  • Number of token holders
  • Verification details of contract's source code

as well as allowing users to search by partial smart contract names or token symbols (e.g., "Tether" or "USDT").

Completion Criteria:

  • Users can input a valid smart contract ID into the search bar, and the block explorer successfully retrieves and displays the corresponding contract overview page.

The contract overview page displays:

  • Basic contract information (name, type, supply metrics).
  • Number of holders
  • Number of total transfers
  • Verified contract source code
  • List of recent transactions
@lufa23 lufa23 added module:explorer Issues related to explorer module type:feature implementing a new feature labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:explorer Issues related to explorer module type:feature implementing a new feature
Projects
None yet
Development

No branches or pull requests

1 participant