Skip to main content

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 up to 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.

Request Body
  • destination string
  • payload string
Responses

Created the voucher.

Schema
  • index uint64
Loading...

© 2024 Cartesi Foundation Ltd. All rights reserved.

The Cartesi Project is commissioned by the Cartesi Foundation.

We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.