Add a new voucher
The dApp backend can call this method to add a new voucher when processing an advance-state request. Vouchers are collateral effects actionable in the blockchain. Between calls to the finish method, the voucher method can be called at least 32k times.
The returned value is the index of the voucher for the current advance-state request. In other words, the index counting restarts at every request.
- application/json
Request Body
- address string
- payload string
Responses
- 200
- default
Created the voucher.
- application/json
- Schema
- Example (from schema)
Schema
- index uint64
{
"index": 0
}
Error response.
- text/plain
- Schema
Schema
- string
Detailed error message.
Loading...