oraclizeapi

package module
v0.0.0-...-fb39416 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 7 Imported by: 0

README

Provable Fabric API HitCount MIT Licence

 

Thanks to this Fabric API, enriching your chaincodes with external data using Provable is very easy!

In Golang it is as simple as importing the oraclize/fabric-api that you'll find in this repository.

This will provide your contract with functions like OraclizeQuery_sync(...), which make it trivial for you to leverage our oracle technology straight away.

Simply import Provable into your contract like so:


import (
  oraclizeapi "github.com/provable-things/fabric-api"
)

Simply install the Provable Connector chaincode on your peer.

To learn more about the Provable Fabric integration, please refer to our documentation here.

 


 

💻 See It In Action!

For working examples of how to integrate the Provable Fabric API into your own chaincodes, head on over to the Provable Fabric Examples repository. Here you'll find various examples that use Provable to feed smart-contracts with data from a variety of external sources.

 


 

📣 Get In Touch!

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

Documentation

Index

Constants

View Source
const (
	NONE      = "0x00"
	TLSNOTARY = "0x10"
	ANDROID   = "0x40"
	LEDGER    = "0x30"
	NATIVE    = "0xf0"
)

Proof type declaration

Variables

This section is empty.

Functions

func NewEncoder

func NewEncoder(buff *bytes.Buffer) cborEncode

NewEncoder creates new encoder object

func OraclizeQuery_sync

func OraclizeQuery_sync(stub shim.ChaincodeStubInterface, dataset string, url string, proofType string) ([]byte, []byte)

OraclizeQuery_sync is used for synchronously sending a request and getting a result+authenticity proof from Oraclize

func ToChaincodeArgs

func ToChaincodeArgs(args ...string) [][]byte

ToChaincodeArgs converts string args to []byte args

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL