tick
InvokeRuns a gossip tick: crafts an update and chooses a peer.
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"roundId": {
"type": "string"
},
"timestamp": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"additionalProperties": false
}
Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"roundId": {
"type": "string"
},
"peerId": {
"type": "string",
"minLength": 1
},
"peerAddress": {
"type": "string",
"format": "uri"
},
"payload": {
"type": "object",
"properties": {
"roundId": {
"type": "string",
"minLength": 1
},
"senderId": {
"type": "string",
"minLength": 1
},
"balances": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1
},
"additionalProperties": {
"type": "number",
"minimum": 0
}
},
"rumor": {
"type": "string"
},
"timestamp": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"roundId",
"senderId",
"balances",
"timestamp"
],
"additionalProperties": false
}
},
"required": [
"roundId",
"peerId",
"peerAddress",
"payload"
],
"additionalProperties": false
}
Invoke with curl
curl -s -X POST \
'http://aurora.daydreams.systems/entrypoints/tick/invoke' \
-H 'Content-Type: application/json' \
-d '
{
"input": {
"roundId": "string",
"timestamp": 0
}
}
'