Minimal commands to run a Smart Contract on EOS
Just set up the environment as shown in the video and run the commands below. You don't need to execute the rows which start with #
EOS Dev environment ready!
❯ /playground
cleos wallet create
cp contracts/hello/ . -R
eosiocppfix -o hello/hello.wast hello/hello.cpp
### NOTE: You can generate or import new keys
## cleos create key
# Private key: 5J21F3YcGvnACPUsAgd7qgnddFQaJtiEPYEMFWerzxrDkwsVRQc
# Public key: EOS8Dx6iX3L6q6Nzs6pqVaqbskhYH3APEo55eVw1S6N1ZF5T87Eqo
## cleos wallet keys
cleos wallet import 5J21F3YcGvnACPUsAgd7qgnddFQaJtiEPYEMFWerzxrDkwsVRQc
cleos create account eosio mycontract EOS8Dx6iX3L6q6Nzs6pqVaqbskhYH3APEo55eVw1S6N1ZF5T87Eqo EOS8Dx6iX3L6q6Nzs6pqVaqbskhYH3APEo55eVw1S6N1ZF5T87Eqo
cleos set contract mycontract hello/ -p mycontract
cleos push action mycontract hi '["luigi"]' -p mycontract
executed transaction: 44c889aa0a4fb7fe4ca3c52274dc37e48ad1633883a69349f33083847bee91be 232 bytes 102400 cycles
# mycontract <= mycontract::hi {"user":"luigi"}
>> Hello, luigi
Congratulation, You deployed your first Smart Contract on EOS local Testnet blockchain!
⚡ Here is the second part How to create a token on the EOS Blockchain https://steemit.com/utopian-io/@luigi-tecnologo/how-to-create-a-token-on-the-eos-blockchain
Thanks for setting up the docker container, makes it a lot easier to get started.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
glad you liked it
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit