Add a new notice
The DApp backend can call this method to add a new notice when processing advance-state request. A notice describes any changes to the internal state of the DApp that may be relevant to the blockchain. Between calls to the finish method, the notice method can be called at least 32k times.
The returned value is the index of the notice for the current advance request. In other words, the index counting restarts at every request.
- application/json
Request Body
- payload string
Payload in the Ethereum hex binary format. The first two characters are '0x' followed by pairs of hexadecimal numbers that correspond to one byte. For instance, '0xdeadbeef' corresponds to a payload with length 4 and bytes 222, 173, 190, 175. An empty payload is represented by the string '0x'.
- 200
- default
Created the notice.
- application/json
- Schema
- Example (from schema)
Schema
- index uint64
Position in the Merkle tree.
{
"index": 0
}
Error response.
- text/plain
- Schema
Schema
- string
Detailed error message.