docker run --rm --name fungi-eosio -d -p 8888:8888 -p 8889:8080 -p 9876:9876 tmuskal/fungi-eosio-dev /bin/bash -c "nodeos -e -p eosio --plugin eosio::producer_plugin --disable-replay-opts --trace-history --plugin eosio::state_history_plugin --plugin eosio::history_plugin --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --plugin eosio::http_plugin -d /mnt/dev/data --config-dir /mnt/dev/config --http-server-address=0.0.0.0:8888 --access-control-allow-origin=* --contracts-console --max-transaction-time=1000 --http-validate-host=false --verbose-http-errors
or compile and run https://github.com/EOSIO/eos/tree/state-history-plugin/
npm install
npm start
-
Create the "helloworld" account. Compile helloworld contract in contracts/helloworld (using eosio-cdt)
-
Push contract and invoke and action
cleos set code helloworld ./contracts/helloworld/helloworld.wasm
cleos set abi helloworld ./contracts/helloworld/helloworld.abi
cleos push action helloworld hi [1234] -p helloworld
Outputs:
setabi for helloworld - updating Serializer
got helloworld.hi.someevent with metadata { number: '1234' } { version: '1.3',
etype: 'someevent',
number: '1234',
field1: '321' }