oracle

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package oracle provides interface to OracleContract native contract. Oracles allow you to get external (non-blockchain) data using HTTPS or NeoFS protocols.

Index

Constants

View Source
const Hash = "\x58\x87\x17\x11\x7e\x0a\xa8\x10\x72\xaf\xab\x71\xd2\xdd\x89\xfe\x7c\x4b\x92\xfe"

Hash represents Oracle contract hash.

Variables

This section is empty.

Functions

func GetPrice added in v0.94.0

func GetPrice() int

GetPrice represents `getPrice` method of Oracle native contract.

func Request

func Request(url string, filter []byte, cb string, userData interface{}, gasForResponse int)

Request represents `request` method of Oracle native contract.

func SetPrice added in v0.94.0

func SetPrice(amount int)

SetPrice represents `setPrice` method of Oracle native contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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