Solidity Support for Bluzelle, via Provable

How to use Bluzelle APIs in your Ethereum smart contracts

With Bluzelle, we aim to be the go-to data cache for Ethereum dApp developers. In the past, we have demonstrated successful integration into Ethereum. To drive better adoption of Bluzelle in the decentralized space, our development team is constantly working on improving user-friendliness and accessibility

This blog will go through our latest new Ethereum API that will become available to the public in an upcoming release, and how smart contract developers will be able to use Bluzelle in a simpler way. (*Note that the Ethereum API will be in an ALPHA state when released. As such, Bluzelle offers no written, oral or implied additional warranties in connection therewith.)

The Ethereum API will be a publicly readable and writable database that is common to all smart contracts. Do ensure you keep this in mind with respect to usage.

Bluzelle APIs used by Provable

There will be an additional set of APIs. Note that these endpoints are only meant to be directly used by Provable. These includes the basic CRUD (Create, Read, Update, Delete) functions for a database, as well as TTL (Time-to-live) functions where you can create a key with a certain life time and have them expired after a set period.

We will publish the full documentation on this new set of endpoints ahead of the CURIE Release so that the public can get familiar with it.

Bluzelle Solidity Support using Provable

Getting data from an outside source onto the blockchain is a non-trivial problem. Currently, we are using Provable as a bridge between Bluzelle and the blockchain.

Provable (formerly “Oraclize”) provides a way for smart contracts to access external data from web APIs.

Demo

In the below video, our developer Monty Thibault will demonstrate our new HTTP endpoints, which enable smart contract developers to use Bluzelle in their applications, exclusively via Provable.

The demo goes through the following steps: