Skip to content

Message Formats

Messages are envelopes {"aid", "payload", ...signatures}. The payload is a JSON string with the fields below. Times are integer milliseconds, and nonces are random.

v Fields
oracle/observation/1 oracle, schema, engagement, value, metadata, nonce, ts
oracle/submission/1 to, type, claims, nonce, ts
oracle/engagement/1 a, b, methods, limits, expires, nonce
oracle/engaged/1 engagement, a, b
oracle/revoke/1 engagement, ts
oracle/call/1 to, engagement, method, params, nonce, depth, ts
oracle/response/1 call, engagement, depth, to, result, success, state, ts
oracle/vote/1 subject, seq, entry, proof

engagement is the digest of the engagement's payload. state of a response is the digest of the latest entry.

Entry

Field Meaning
d Digest of the entry
v oracle/entry/1
kind, aid Subject
seq, prior Position and previous entry
policy Digest of the policy
ts, started Time of the entry and of the creation
trigger Empty, timeout or dispute
inputs Observations or submissions with their engagements and credentials
state Resulting state
vdf Delay proof

State

An oracle's state is {"value", "weights"}. A contract's state is {"status", "vars", "mode", "used"}.

Numbers

Values are decimal strings of at most 48 characters with a magnitude below 10^30.