Upload your new contract to your account

$cleos --wallet-url http://wallet:5555 -u http://server:7777 set contract mynewaccount /eos/contracts/hello/ -p mynewaccount

Reading WAST/WASM from /eos/contracts/hello/hello.wast...
Assembling WASM...
Publishing contract...
executed transaction: c15e40773b43e98022022c808ee013c0acd5c758ff3ebab5f9e64e98d2c07540  1648 bytes  2200576 cycles
#         eosio <= eosio::setcode               {"account":"mynewaccount","vmtype":0,"vmversion":0,"code":"0061736d0100000001370b60027f7e0060027e7e0...
#         eosio <= eosio::setabi                {"account":"mynewaccount","abi":{"types":[],"structs":[{"name":"hi","base":"","fields":[{"name":"use...
$cleos --wallet-url http://wallet:5555 -u http://server:7777 push action mynewaccount hi '["username1"]' --permission mynewaccount@active

executed transaction: 259f32454f3b075cc0eb02557e858da9dcce39d88b833bda62a0ac51ba5e340c  232 bytes  102400 cycles
#  mynewaccount <= mynewaccount::hi             {"user":"username1"}
>> Hello, username1
Close Menu
×

Cart