Provable (Oraclize) Oracle Smart Contract With Remix
Автор: BlockchainBob
Загружено: 2022-02-27
Просмотров: 1052
I use the example code from Provable's official documentation to deploy an oracle which fetches the ETH/USD price from Coinbase.
Provable fetches the data off-chain, then calls the _callback method to put the result from the data source on-chain.
Github link for the oracle code:
https://github.com/robertipk/Provable...
The Rinkeby address of the oracle that I deployed in the video is 0xea0bdff8dc6dc73cfc5517ebf9e9372ae6147b81 (so you can also see the history of the calls I made).
The first provable_query is free. Subsequent calls cost ether.
In the 'Internal Txns' tab in Etherscan, you can see the cost of the subsequent calls cost 0.00403530450132391 ether. That cost is subtracted from the balance of the oracle.
https://docs.provable.xyz/#ethereum-q...
Events:
https://rinkeby.etherscan.io/address/...
In the video, I deployed using Remix with compiler 0.4.26+commit.4563c3fc
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: