[{"data":1,"prerenderedAt":96},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-roulette-contract-with-cli-wallet":3,"docs-surround-\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-roulette-contract-with-cli-wallet":85},{"id":4,"title":5,"body":6,"description":12,"extension":77,"image":78,"meta":79,"navTitle":78,"navigation":80,"path":81,"seo":82,"stem":83,"__hash__":84},"docs\u002Fdocs\u002Fcore-tech\u002FUsing-BeamX-Roulette-contract-with-CLI-Wallet.md","Using BeamX Roulette Contract With CLI Wallet",{"type":7,"value":8,"toc":73},"minimark",[9,13,16,32,35,38,41,48,51,57,60,65,68],[10,11,12],"p",{},"Let's play some games!",[10,14,15],{},"In this example we will interact with the contract that",[10,17,18,19,26,27],{},"As usual we assume that you have read ",[20,21,25],"a",{"href":22,"rel":23},"https:\u002F\u002Fgithub.com\u002FBeamMW\u002Fbeam\u002Fwiki\u002FBeamX-Getting-Started",[24],"nofollow","BeamX Getting Started Guide"," and ",[20,28,31],{"href":29,"rel":30},"https:\u002F\u002Fgithub.com\u002FBeamMW\u002Fbeam\u002Fwiki\u002FUsing-BeamX-Faucet-contract-with-CLI-Wallet",[24],"Using BeamX Faucet contract with CLI Wallet",[10,33,34],{},"We also assume that you have the app.wasm and contract.was in the shaders\u002Froulette folder under the 'beamx' folder where you keep your wallet binary file.",[10,36,37],{},"If so, we are all set to spin our Roulette.",[10,39,40],{},"Well, it's a kind of roulette. In our case your bet is on any number between 0 and 36 (including both 0 and 36). If you guess the number exactly you receive 100 tokens (which are actually new confidential assets on Beam chain). This actually means that in order to create a new Roulette contract you would need to lock the new asset type deposit (which in this chain is configured to be 1000 Beam)",[42,43,44],"ol",{},[45,46,47],"li",{},"How do I play?",[10,49,50],{},"Since Roulette contract has an implicit owner (who is the dealer) there could be many roulettes out there. To find all of them we will run the following command:",[10,52,53],{},[54,55,56],"code",{},"beam-wallet-beamx.exe shader --shader_app_file shaders\\roulette\\app.wasm --shader_args=\"role=player,action=bet,cid=ac16be1cb673ace9423d32fe20893e1639fd560e35e6b3433c77bee831647372,iSector=15\" -n 127.0.0.1:8501",[10,58,59],{},"To check the status of your bet run",[10,61,62],{},[54,63,64],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\\roulette\\app.wasm --shader_args=\"role=player,action=check,cid=ac16be1cb673ace9423d32fe20893e1639fd560e35e6b3433c77bee831647372\" -n 127.0.0.1:8501",[10,66,67],{},"To get your winning run:",[10,69,70],{},[54,71,72],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\\roulette\\app.wasm --shader_args=\"role=player,action=take,cid=ac16be1cb673ace9423d32fe20893e1639fd560e35e6b3433c77bee831647372\" -n 127.0.0.1:8501",{"title":74,"searchDepth":75,"depth":75,"links":76},"",2,[],"md",null,{},true,"\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-roulette-contract-with-cli-wallet",{"description":12},"docs\u002Fcore-tech\u002FUsing-BeamX-Roulette-contract-with-CLI-Wallet","UyWsxltWJafdR1zD1AXVItRkN678_vHGCpH4xrAJxrk",[86,91],{"title":87,"path":88,"stem":89,"description":90,"children":-1},"Using BeamX Faucet Contract With CLI Wallet","\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-faucet-contract-with-cli-wallet","docs\u002Fcore-tech\u002FUsing-BeamX-Faucet-contract-with-CLI-Wallet","NOTE: If you have not installed BeamX please follow the instructions in the Getting Started Guide",{"title":92,"path":93,"stem":94,"description":95,"children":-1},"Using BeamX Vault Contract With CLI Wallet","\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-vault-contract-with-cli-wallet","docs\u002Fcore-tech\u002FUsing-BeamX-Vault-contract-with-CLI-Wallet","NOTE: If you haven't already, please review BeamX Getting Started Guide and Using BeamX Faucet contract with CLI Wallet",1783006086361]