Propose an event to bet on and how much you are willing to risk.
gun bet propose [options] <event-url>
gun bet propose https://h00.ooo/random/2021-11-01T00:00:00/heads_tails.winner
gun bets start with a proposal which set the oracle, event and value the proposer will risk on the bet.
The oracle and the event are embedded in the
Right now only
https URLs are supported.
The oracle for the bet is the host of the URL e.g.
In order to discover an oracle and event to bet on you can use an oracle explorer like outcome.observer.
Note carefully that you can only bet on events with two outcomes.
The command will output the proposal as a
# delimited string with the binary data encoded with base2048.
⚠️The binary data includes the on-chain input the proposer is using for the bet. These are unencrypted and viewable by anyone. Therefore, if you are posting the proposal publicly you must first ask yourself whether you really want these on-chain inputs to be linked to the identity that posts it.
Currently it is possible to include a change output in the proposal where your excess over the value you want to bet will go.
While the proposal is active these coins will be reserved for the bet and
It is a good idea to use
gun split to create an output with the exact amount of coins you want to risk as a proposer to avoid this.
For technical reasons in the future change outputs for the proposer may be removed so you should get used to doing this now!
The value you want to risk on the bet.
If you don't provide it you'll be prompted for it.
all to go "all in" with the coins in your wallet, otherwise an amount and denomination like
Add human readable tag to the bet as you create it.
[y/n] prompts by just answering
yes to all of them.