Thanks to this EOS API, enriching your smart-contracts with external data using Provable is very easy!
In C++ it is as simple as including the eos_api.hpp
library that you'll find in this repository.
This will provide your contract with functions like provable_query(...)
, which make it trivial for you to leverage our oracle technology straight away.
Simply import Provable into your contract like so:
#include "provable/eos_api.hpp"
To learn more about the Provable technology, please refer to our documentation here.
The eos_api.hpp
library in currently available on:
❍ EOS Mainnet
❍ EOS Jungle 3 Testnet
❍ EOS Kylin Testnet
The eos_api.hpp
library in the master branch is compatible with the EOSIO CDT 1.7.
The Provable API compatible with the CDT 1.6 and 1.4 can be found in corresponding branches.
For working examples of how to integrate the Provable EOS API into your own smart-contracts, head on over to the Provable EOS Examples repository. Here you'll find various examples that use Provable to feed smart-contracts with data from a variety of external sources.
If you want to ask us something, or tell us something, there's loads of ways to get in touch:
❍ We have a Twitter
❍ And a Gitter
❍ Or a Website
❍ Plus a Github