riccotz avatar

USAGE EOS CLEOS - EASY #2

riccotz

Published: 10 Apr 2018 › Updated: 10 Apr 2018USAGE EOS CLEOS - EASY #2

USAGE EOS CLEOS - EASY #2

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",...

Leave USAGE EOS CLEOS - EASY #2 to:

Written by

Read more #eos posts


Best Posts From riccotz

We have not curated any of riccotz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From riccotz