USAGE EOS CLEOS - EASY #2

in eos •  7 years ago 

HOW PUBLISH CONTRACT

#FIRST UNLOCK YOUR WALLET
curl http://127.0.0.1:8888/v1/wallet/unlock -X POST -d '["mywallet","PW5JhCZAbgMbn92Htr"]'
#CREATE WAST FILE

/usr/local/bin/eosiocpp -o /root/eos/contracts/mycontract/mycontract.wast /root/eos/contracts/mycontract/mycontract.cpp

#CREATE ABI FILE

/usr/local/bin/eosiocpp -g /root/eos/contracts/mycontract/mycontract.abi /root/eos/contracts/mycontract/mycontract.cpp

/usr/local/bin/cleos set contract myacc /root/eos/contracts/mycontract/ -p myacc

it return ->

Reading WAST...
Assembling WASM...
Publishing contract...
executed transaction: 80b717882fc392ff6b6560f1f411adacbc0e6be8f71910cb0c4 1688 bytes 2200576 cycles

eosio <= eosio::setcode {"account":"myacc","vmtype":0,"vmversion":0,"code":"0061736d010000b60027f7e0060027e7e00600...

eosio <= eosio::setabi {"account":"myacc","abi":{"types":[],"structs":[{"name":"actionget","base":"","fields":[{"name":"fieldname",...

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!