Creating an Oracle Request
In order for the DSP to know what information it is that you want to receive, there is a format to creating an oracle request.
Each of the following oracle request types comes equipped with its own syntax that gets encoded with Buffer.from("<URI HERE>", 'utf8')
. The following guide will explain the syntax to generate your URI. Each URI should be passed through the buffer as plaintext is not accepted.
NodeJS example:
Smart contract example (from here):
Explore the different APIs in the following categories.
Last updated