3

I would like to get an oracle for values of countries' based currencies. Are there such free oracles?

1
  • 2
    You can make one using chainlink external adapters. All you need is a source, from which you want to bring the data.
    – Anupam
    Apr 11, 2021 at 13:55

1 Answer 1

3

Chainlink's decentralized oracle network can easily facilitate this. You can either find your own data source or sources and make an Any-API request in your contract or depending on what data you want they already have a growing list of currency exchange rates in their list of data feeds. These are feeds that pull data from multiple high-quality sources, then have multiple oracles aggregate the data and post the final result on-chain, where it can be consumed by other smart contracts. More info in their Price Feeds docs

3
  • Do you know is chainlink supports GraphQL APIs? I couldn't find anything in the docs, so I'm assuming no :( Dec 22, 2021 at 18:22
  • Chainlink supports any API. The default adapters handle any HTTP GET, POST or PUT request, but if you need to do some custom code to handle other scenarios, you can use what are called external adapter, which is basically an API in itself that the chainlink node uses. Check out the docs docs.chain.link/docs/external-adapters . If you show me an example of a GraphQL API call I can tell you what you'd need to use it using Chainlink Dec 22, 2021 at 23:53
  • Super interesting. I'm actually just calling the Snapshot GraphQL API. The votes query from this endpoint actually. hub.snapshot.org/graphql? Dec 23, 2021 at 1:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.