url
, URL of the GET requesthttp
response with the parameter path list as key. The result will then be serialized to form a data structure, as defined by the user, and then finally written in the Oracle contract.
Here is a list of the parameters:json
, write key in list, if data is array, write index as string in listHTTP
response is:HTTP
response is parsed and then a structure is created based on the data structure, which is then serialized.type
field is left empty, the task will be run immediately. While the params
field is used to specify the time in this format: YYYY-MM-DD HH:MM:SS
Example - "2018-06-15 08:37:18"HTTP
response is:HTTP
post example above fetches a random number from random.org. This Ontology Oracle packages a more convenient method randomOrg
to get a signed random number.true
: random number can occur multiple times, false
: numbers are uniquetrue
: random number can occur multiple times, false
: numbers are uniquetxhash
can be used to fetch the result of the on-chain Oracle request. The request format is: