[{"data":1,"prerenderedAt":131},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-vault-contract-with-cli-wallet":3,"docs-surround-\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-vault-contract-with-cli-wallet":120},{"id":4,"title":5,"body":6,"description":111,"extension":112,"image":113,"meta":114,"navTitle":113,"navigation":115,"path":116,"seo":117,"stem":118,"__hash__":119},"docs\u002Fdocs\u002Fcore-tech\u002FUsing-BeamX-Vault-contract-with-CLI-Wallet.md","Using BeamX Vault Contract With CLI Wallet",{"type":7,"value":8,"toc":100},"minimark",[9,26,29,32,35,40,46,50,55,59,64,68,73,77,82,86,91,95],[10,11,12,13,20,21],"p",{},"NOTE: If you haven't already, please review ",[14,15,19],"a",{"href":16,"rel":17},"https:\u002F\u002Fgithub.com\u002FBeamMW\u002Fbeam\u002Fwiki\u002FBeamX-Getting-Started",[18],"nofollow","BeamX Getting Started Guide"," and ",[14,22,25],{"href":23,"rel":24},"https:\u002F\u002Fgithub.com\u002FBeamMW\u002Fbeam\u002Fwiki\u002FUsing-BeamX-Faucet-contract-with-CLI-Wallet",[18],"Using BeamX Faucet contract with CLI Wallet",[10,27,28],{},"In this section we will learn how to use BeamX Vault example. It is very similar to the Faucet example, only there are no limitation on deposits and withdrawals. It's basically just a simple vault contract you can keep money in.",[10,30,31],{},"As usual we assume that you have the app.wasm and contract.was in the shaders\u002Fvault folder under the 'beamx' folder where you keep your wallet binary file.",[10,33,34],{},"If so, you can use the following list of commands:",[36,37,39],"h2",{"id":38},"create-contract","Create contract:",[10,41,42],{},[43,44,45],"code",{},"beam-wallet-beamx.exe shader --shader_manager_file shaders\u002Fvault\u002Fapp.wasm --shader_args=\"role=manager,action=create\" --shader_contract_file shaders\u002Fvault\u002Fcontract.wasm -n 127.0.0.1:8501",[36,47,49],{"id":48},"list-all-contracts-of-this-type","List all contracts of this type",[10,51,52],{},[43,53,54],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\u002Fvault\u002Fapp.wasm --shader_args=\"role=manager,action=view\" -n 127.0.0.1:8501",[36,56,58],{"id":57},"list-all-shader-commands","List all shader commands",[10,60,61],{},[43,62,63],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\u002Fvault\u002Fapp.wasm -n 127.0.0.1:8501",[36,65,67],{"id":66},"view-my-account","View my account",[10,69,70],{},[43,71,72],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\u002Fvault\u002Fapp.wasm --shader_args=\"role=my_account,action=view,cid=7965a18aefaf3050ccd404482eb919f6641daaf111c7c4a7787c2e932942aa91\" -n 127.0.0.1:8501",[36,74,76],{"id":75},"deposit-1-beam","Deposit 1 beam",[10,78,79],{},[43,80,81],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\u002Fvault\u002Fapp.wasm --shader_args=\"role=my_account,action=deposit,cid=7965a18aefaf3050ccd404482eb919f6641daaf111c7c4a7787c2e932942aa91,amount=100000000\" -n 127.0.0.1:8501",[36,83,85],{"id":84},"withdraw","Withdraw",[10,87,88],{},[43,89,90],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\u002Fvault\u002Fapp.wasm --shader_args=\"role=my_account,action=withdraw,cid=7965a18aefaf3050ccd404482eb919f6641daaf111c7c4a7787c2e932942aa91,amount=100000000\" -n 127.0.0.1:8501",[36,92,94],{"id":93},"view-all-accounts","View all accounts",[10,96,97],{},[43,98,99],{},"beam-wallet-beamx.exe shader --shader_app_file shaders\u002Fvault\u002Fapp.wasm --shader_args=\"role=all_accounts,action=view,cid=7965a18aefaf3050ccd404482eb919f6641daaf111c7c4a7787c2e932942aa91\" -n 127.0.0.1:8501",{"title":101,"searchDepth":102,"depth":102,"links":103},"",2,[104,105,106,107,108,109,110],{"id":38,"depth":102,"text":39},{"id":48,"depth":102,"text":49},{"id":57,"depth":102,"text":58},{"id":66,"depth":102,"text":67},{"id":75,"depth":102,"text":76},{"id":84,"depth":102,"text":85},{"id":93,"depth":102,"text":94},"NOTE: If you haven't already, please review BeamX Getting Started Guide and Using BeamX Faucet contract with CLI Wallet","md",null,{},true,"\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-vault-contract-with-cli-wallet",{"description":111},"docs\u002Fcore-tech\u002FUsing-BeamX-Vault-contract-with-CLI-Wallet","7v3CzY-tGug1OP11j_JLK77LxSxjLdEp9ZMcC3VbtH8",[121,126],{"title":122,"path":123,"stem":124,"description":125,"children":-1},"Using BeamX Roulette Contract With CLI Wallet","\u002Fdocs\u002Fcore-tech\u002Fusing-beamx-roulette-contract-with-cli-wallet","docs\u002Fcore-tech\u002FUsing-BeamX-Roulette-contract-with-CLI-Wallet","Let's play some games!",{"title":127,"path":128,"stem":129,"description":130,"children":-1},"Overview","\u002Fdocs\u002Fcore-tech\u002Fwasm-wallet-client","docs\u002Fcore-tech\u002FWASM-wallet-client","WASM wallet client is a thin wrapper around Beam client library build into WASM using Emscripten toolchain. This wrapper allows to run BEAM wallet inside any browser supporting WebAssembly and it provides the regular BEAM wallet API to communicated with it from external(javascript) code. It's available via npm for different network types:",1783006089182]