API Reference
Understanding the worm brain may (or may not) unlock numerous possibilities
Refer to the Contracts and IP Addresses section to query the right resources
Worm Contract
getWormState
Returns the state values of the left and right muscles
trigger
Externally trigger chemotaxis and noseTouch on the worm
lastUpdatedTimestamp
Returns the number of the block when the worm's start was last updated
lastTriggeredTimestamp
Returns the number of the block when the trigger method was last called
enclave
Returns the key last registered by an attested enclave hosting the worm brain
pcrs
Returns the PCR values that enclaves must have to be considered valid
TEE Endpoints
/set?address=<address>
One-shot endpoint to set the worm's contract address at the start
/leftmuscle
Left muscle value
/rightmuscle
Right muscle value
/state?id=<N>
State of the Nth neuron
Last updated