On this page, you can create and execute a bitcoin smart contract with the following properties:
The smart contract will be between two parties, Alice and Bob
They will be betting on the outcome of some future event
10 oracles will adjudicate the bet by saying Yes if the future event happened or No otherwise
If Alice and Bob agree on the outcome, the loser sends their private key to the winner, and the winner sweeps the funds immediately, without needing information from the oracles
If they disagree on the outcome, the winner can sweep the funds immediately using a simple majority vote from the oracles: Alice can sweep if 6 out of 10 oracles said Yes, and Bob can sweep if 6 out of 10 oracles said No
If most of the oracles went down, the winner can wait a week and then withdraw as long as just 1 oracle spoke up and no other oracle disagreed
If all of the oracles went down, either party can wait a week plus 90 minutes and then divide up the funds 50/50 between one another
Prepare actors
(She will be betting on Yes)
(He will be betting on No)
Make the smart contract
Smart contract address:
[None yet]
Fund the smart contract
Visit the Testnet Generator, make a testnet, and use it to send 10,000 sats to the smart contract: