APIs
This section elaborates on the transaction message handler methods being exposed by the Bet module.
Wager
When a wager transaction is processed, the following things happen:
If KYC is not ignored, KYC validation of the user should be approved and KYC ID should be equal to the creator's address.
Then, invoke the OVM module to validate the ticket.
After the ticket validation, the Order Book module is invoked to manage the transfer of funds involved in the process and distribute the participation exposures.
Then, a new bet will be created with the given data and stored in the bet module's KVStore, in the following way:
RPC
The RPC for adding a market is as follows:
Request Message
The request message for Wager
is MsgWager
. The proto for the request message is as follows:
Response Message
The response message Wager
is MsgWagerResponse
. The proto for the request message is as follows:
Last updated