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

Fetch token info inside GH action #343

Open
alfetopito opened this issue Jan 11, 2024 · 1 comment
Open

Fetch token info inside GH action #343

alfetopito opened this issue Jan 11, 2024 · 1 comment

Comments

@alfetopito
Copy link
Collaborator

Summary

When adding a token, the user is required to provide token name, address, symbol, decimals and image.
In fact, we only need the address (to know which token to target) and image (not easily available anywhere else).

Additionally, the input info can be different from the contract, which might cause problems down the line.

Proposal

Update the forms to require only: chain, address and image.

Use a REST API to fetch token info based on chain and address during GH action.

One option might be Etherscan although requires a PRO account.

@ahhda
Copy link
Contributor

ahhda commented Jan 12, 2024

We can use Ethplorer for this. Here is the documentation on Token info API.
Example request: https://api.ethplorer.io/getTokenInfo/0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab?apiKey=freekey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants