-
Notifications
You must be signed in to change notification settings - Fork 2
Running Beam Shaders using CLI Wallet
Anatol Sevastsyan edited this page May 20, 2022
·
4 revisions
You can run shader commands using Beam CLI wallet by following the steps below
- Make sure you have Beam node running and connected to Beam network (preferred) documentation 2 Make sure you have Beam CLI wallet connected to your Beam node or to one of the Beam bootstrap nodes documentation
As you remember there are two types of Shaders:
- Contract Shaders - implement Smart Contract functionality, are store on the blockchain and are running on Beam nodes.
- App Shaders - implement Smart Contract API and are running in Beam Wallet.
All examples refer to a sample application 'mydapp' which has two Shaders, App Shader (app.wasm) and Contract Shader (contract.wasm)
Just like all other operations, deploying a Contract also
Example:
beam-wallet-testnet.exe shader --shader_app_file=mydapp\app.wasm --shader_args="role=manager,action=create" --shader_contract_file=mydapp\contract.wasm -n 127.0.0.1:8501
You can see all commands supported by the App Shader by running it without any parameters
beam-wallet-testnet.exe shader --shader_app_file=mydapp\app.wasm -n 127.0.0.1:8501