Example Oracle Pricefeed

Hello all,

as an example how to use and integrate oracles I created an oracle on mainnet that returns the aeternity price given an currency code. I documented all the code and example integrations with contracts or the js-sdk here:

Let me know if there are any questions!


I like this. Practical use of oracle data. More aepps and oracles from team ae please!

AE does a lot more than oracles, but if more focus put on oracle’s, AE would garner more buidlers and attention.

Purely oracle tokens are having nice success lately and AE has the groundwork done to take advantage of this market. price oracle’s like this will help get ae into Defi. Next, I would like to see the interoperability of oracle’s demonstrated serving another blockchain that might want to take advantage of ae’s efficiency.

Good job, keep it coming


It should be an example how easy it is, and eventually be used as a framework, with just changing 3-5 lines of code, any api can be exposed like this.


Nice! Oracles, oracles … oracles :man_shrugging:

1 Like

I was always wondering and thinking about a combination or integration of æternity oracles and ChainLink. I mean this should be complementary, shouldn’t it?

maybe someone wants to look into that area. here a repository which includes code to initiate ChainLink jobs from other blockchains:

Can we get an oracle that feeds data into Ethereum contracts?

It should be an example how easy it is, and eventually be used as a framework, with just changing 3-5 lines of code, any api can be exposed like this.

Yes, it is a clear example to a tiny select - skilled and knowledgeable - group of people. But as you say yourself ‘eventually.’ How soon? Why not today?

How is it that the AE leadership is not seeing that time is short - that time is running out - and that bringing new energy and new forces to the ecosystem should be their TOP PRIORITY?

First step: Having a number of functional, fully-fledged, useful, stand-alone, complete, example programs - that random people can download onto their phones from the App store or Google - and right away experience the speed and power and beauty of the AE ecosystem - and tell their friends about it.

----If you wait for those to appear ‘naturally’ - like in a movie - built by some unknown upstart programmer from Africa of China with beautiful music playing in the background - you will waste critical years - and all the advantage AE has today will disappear.----

In successful product development - developing ALL the features FROM the start is wrong. It’s like THE FIRST RULE in the bible of product development - premiere the product, get it to be useful, get it to be USED - and ONLY THEN innovate and improve the extra features.

What are you guys doing right now improving all the bells and whistles when the basic AE system is not fully usable, not easily grabbable (as evidenced by no new AEpps appearing in MONTHS) by a random programmer?

What are you guys doing at this point in the game? Making advances on a high-speed train that keeps travelling empty? FOR MORE THAN A YEAR NOW!??!?!

Steve Jobs said: “Real Artists Ship!”

:slight_smile: :heart:

With the biggest appreciation for all your work, your local ‘please do the right thing’ loud guy.


It is supposed to serve as an example, I don’t force anyone to use it as framework, nor advertise it as such, it can be adapted by community for this purpose though.

I’ll ignore other parts of the post as they are off-topic for this discussion.

1 Like

this doesn’t make sense in my opinion. ethereum has specific contracts - mostly provided by chainlink - that can handle input of real world data. in æternity this is part of the protocol - so we already have a standardized way how to interact with oracles.

what I meant is that somebody could integrate chainlink so that chainlink data providers can listen to oracle requests happening on æternity and respond to them. but the more I am writing about this the more I think this also doesn’t make sense.

the question here is how data aggregation on chainlink is happening - haven’t had a deep look into that yet. I guess this is being done through smart contracts and then there wouldn’t be any advantage for æternity developers to integrate chainlink. in fact this can easily be done using æternity oracles.

superhero already shows how this can be done.

I really like this. hopefully I will find some time to dig in deeper into this. maybe we can showcase this using a smart contract on the testnet with a set of trusted oracles and provide a UI like chainlink did (https://feeds.chain.link/eth-usd)

if adoption kicks in and enough interest is there we could move that to mainnet

1 Like

I like this Idea.

Actually one more usecase could be , in SSI the DID’s can be verified cross chain.

Like I can verify a DID of Soverin network perhaps via Ae Oracles.

I could be wrong also :smiley:

thanks :slight_smile:

Secure messaging between different DIDs (that can live on different ledgers) using different protocols is all what Hyperledger Aries is about. It’s more about the DID method that specifies how to handle it.

1 Like

Nothing more to add, agree fully with every word

1 Like

Hey phillip, i dont think that post was aimed at you, i think you did great to post some examples and did good effort.

I think what people are trying to say is ae should now stop with core development and start developing dapps that can showcase ae and that can draw users. No point in keeping improving something that has no users, need to get the users.


this is probably your view. so I would mention it like that. I don’t agree with this statement. I think core development is important and if we lose the core developers this project is probably dead.

I personally would rather say that the things aeternity is building (whatever it is) should be well thought, executed and promoted. except for superhero this has never been the case IMO. and even for superhero there is room for improvement (explanation, promotion, …)

bad examples are more or less all demos that have been developed for state channels (coin toss, coin flip, …) and of course the “aeternity playground”. I don’t wanna know how much time was “wasted” here

one problem for “regular aepps” is that only a small group of people in the community seem to be developers and even those don’t apply for grants of the crypto foundation. so it seems like the only option we have is to hope that the things built by the team will drive adoption or that some of the starfleet projects gain traction.

in fact everybody could build aepps on top of aeternity - but for some reason nobody wants to do that.

but again, this is my personal view about that. for this reason it would be cool to have a running example for a price feed with aggregation running on testnet and hosted by the team/foundation. people must see what can be done and need a detailed explanation how this is working on a real example.

after ~2 months of superhero we have 211 users (“unique tip senders”) which include all beta testers and users that are already part of the community. this is basically no adoption at all. I hope this will change - but here we need people of the community to promote this platform @Whyarewehere42.chain @swift

the cool thing about superhero is that it showcases how oracles are working and this is awesome. but again, nobody knows it and nobody seems to care … for those who care and want to know how it works under the hood I recommend to read https://kryptokrauts.com/log/superhero-a-truly-decentralized-social-tipping-platform


Yes of course what we’re doing here is discussing opinions. That’s the only thing we CAN do. However, one of them has evidence on its side - the evidence that when the focus is only on core development (like it is now) - with no serious ‘regular aepp’ or ‘community expansion’ done (like now) - It. Does. Not. Happen (like now for more than a year).

“in fact everybody could build aepps on top of aeternity - but for some reason nobody wants to do that.” - yes, because it’s a ‘chicken before the egg’ sort of a thing - and the AE leaders for some reason believe that the chicken will just evolve by itself from some protoplasmic goo. You need to make some little chickens so that they start running around making babies.

And DEMOS are not where it’s at - nobody cares about demos - you need functional programs that DO USEFUL THINGS. Does the leadership of AE have anyone onboard who’s actually successfully developed a project? This is just such an amateur mistake that’s being done - so stubbornly and so ‘head on the wall’ knocking. For close to a year now - just dreaming that ‘people will come and start building!’

Starfleet projects aren’t gaining traction - because they’re being done by start-up programmers without any serious support. Core development IS important - but where’s proof that ‘if core developers get re-targeted for a few months on making a few awesome AEpps’ - ‘this project is probably dead.’ That’s a huge stretch and supposition.

There is no adoption. NONE. Why is AE not doing anything to try to fix that?

I never said that core developers should start working on aepps. I want to clarify on that one. I personally support core development and if I personally notice that core development isn’t done anymore I will consider this project myself as dead and move on. in fact I am waiting for the new Sophia capabilities which would enable us to build an AENS marketplace and the incentivized name extender application. also I am waiting for the new middleware to replace aeternal - which should hopefully be the case in the upcoming weeks

demos are useful if they reflect a real usecase and if they are well documented and described

what is superhero in your opinion?

unfortunatelly I must 100% agree

Agree that advancement of core functionality is needed. All I am saying is that - it must NOT be the only goal of the core team - with a hope/dream that ‘community expansion’ will happen with a few token gestures and without continuous work.

Superhero was developed. Great. IF it was being modified/advanced/improved (for example, I gave a suggestion for its improvement about 3 months ago - it was neither discussed nor addressed) and IF there was a ‘okay this is what’s next’ community-outreach program that was visible - at least a single AEpp under core development - I would be a lot less incensed.

Since we all agree that there’s absolutely no adoption - we should be discussing what can be done to get that started! My off top of head ideas:

  • have a separate thread where a discussion of a ‘killer AEpp’ is conducted - to then be built by the core team
  • airdrop. When’s that supposed to happen?
  • Distributed Finance - how can already extant dApps be incentivized to move to AEternity? Can a “if you move to AE we’ll give you 10,000 tokens” be a thing?
  • Distributed Finance examples/oracles/more serious projects developed

Yes - anybody can do it but you may experience a lot of pain and give up if you’re not persevering.
I’ve written Ethereum Dapps before - it was a nice experience as a newcomer, didn’t have any bigger hiccups and even twice made workshops about it for high school students.
When I’ve wanted to port one of my Dapps to Aeternity the amount of pain which I’ve experienced was immense. Don’t get me wrong - I like many things in the AE ecosystem, there are things about ETH which I like to rant about which don’t affect AE at all. Things are changing - the AE ecosystem is constantly improving but last time when I’ve tried Aepp development was still not easily approachable for newcommers compared to ETH - Might give it another try in my free time to see if it became more approachable due to @nikitafuchs.chain aestudio :wink:

My problems about Aepp development when I’ve last tried:

  1. No debugger for smart contracts - I think @radrow can voice his thoughts here
  2. I’ve crashed the compiler…
  3. The SDK sends http requests for encoding/decoding data - in aestudio there is a noticable delay due to this even for dry runs
  4. No chain simulator - manual testing is hard compared to remix, you can test only after deploying the contract to testnet
  5. Deploying the contract is the easy part - back then wallet integration caused me many headaches - perhaps this changed with superhero wallet.
  6. aeproject is slow compared to the ETH counterparts - have we deprecated this project?

@gorbak25 actually I have waited for someone like you to mention such experiences. totally agree that the developer experience has room for improvement. but if nobody builds on top of aeternity and advices the team with the problems this won’t change. but I assume that the devs of Superhero already collected some things that need to be improved. at least I hope so :smiley:

this is the reason I want to see a full demo as an example with a walkthrough guide. similar to what angular for example provided with the “tour of heroes”. should be enough for an experienced developer to get started then.

1 Like