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

api: Add /{runtime}/evm_tokens/{address} endpoint #453

Merged
merged 2 commits into from
Jun 16, 2023

Conversation

mitjat
Copy link
Contributor

@mitjat mitjat commented Jun 15, 2023

This PR adds a new endpoint for retrieving token-specific details about a single token contract.

I was initially planning to put this info under a field in the /{runtime}/accounts/{address} endpoint, but then decided to put it here as that endpoint's response is pretty heavy already.

There's not a task/issue for this PR, but I expect it to be needed in the near future as the explorer will show info about individual token-like contracts. cc @csillag

Testing: Manually visited an url of a token contract, verified the info was there. Visited a non-token contract, verified I got HTTP 404.

@mitjat mitjat force-pushed the mitjat/api-contract-info branch from e67076c to 195378b Compare June 16, 2023 01:11
@mitjat mitjat force-pushed the mitjat/api-contract-info branch 2 times, most recently from aeae282 to 2da9ca0 Compare June 16, 2023 17:56
Base automatically changed from mitjat/api-contract-info to main June 16, 2023 18:02
@mitjat mitjat force-pushed the mitjat/single-token-api branch from 1476f2e to 20b97e2 Compare June 16, 2023 19:53
@mitjat mitjat merged commit 4a51200 into main Jun 16, 2023
@mitjat mitjat deleted the mitjat/single-token-api branch June 16, 2023 23:51
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

Successfully merging this pull request may close these issues.

2 participants