Move.

Post

Share your knowledge.

YJS.
YJS94
Dec 31, 2024
Discussion

How to use API endpoint for coin data on a website?

I'm working on a website and I need to display the current market cap and price of our coin. I've found an API related to our coin, but I'm unsure how to use it. Could someone guide me on how I can get this information through the API?

  • Move CLI
  • Move
2
1
Share
Comments
.

Answers

1
Dominikus .
Jan 1 2025, 15:22

To display the current market cap and price, you need to use the API endpoint. As mentioned, the endpoint you should be looking at is below the getCoinByType function. It seems like you might want to use the getCoinMetaData endpoint to retrieve information about a single coin. Check the metadata returned from this endpoint to see if it includes the market cap and price.

1
Best Answer
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info