Skip to content

codemodify/EOS-Dev-Resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

EOS Dev Resources

Install / Run the node

  • Core Concepts
    • nodeos (node + eos = nodeos) - the core EOSIO node daemon that can be configured with plugins to run a node. Example uses are block production, dedicated API endpoints, and local development.
    • cleos (cli + eos = cleos) - command line interface to interact with the blockchain and to manage wallets
    • keosd (key + eos = keosd) - component that securely stores EOSIO keys in wallets.
  • Run
     sudo docker run --name nodeos -d -p 8888:8888 --network eosdev \
     -v /tmp/eosio/work:/work -v /tmp/eosio/data:/mnt/dev/data \
     -v /tmp/eosio/config:/mnt/dev/config eosio/eos-dev  \
     /bin/bash -c "nodeos -e -p eosio --plugin eosio::producer_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 --http-validate-host=false"
    • Run Keosd (Wallet and Keystore)
     sudo docker run -d --name keosd --network=eosdev \
     -i eosio/eos-dev /bin/bash -c "keosd --http-server-address=0.0.0.0:9876"
    • Check your installation
     sudo docker logs -f nodeos
    • Check the Wallet
      • sudo docker exec -it keosd bash
      • cleos --wallet-url http://127.0.0.1:9876 wallet list keys
    • Create a wallet
      • sudo docker exec -it keosd bash
      • cleos --wallet-url http://127.0.0.1:9876 wallet create --to-console => "PW5JQczx9RdmC5ny9Vt7QW8nr2kFqCzNLPZ6YqrTd6Kj9RVfUGm7x"
      • cleos --wallet-url http://127.0.0.1:9876 wallet unlock --password PW5JQczx9RdmC5ny9Vt7QW8nr2kFqCzNLPZ6YqrTd6Kj9RVfUGm7x
    • Check Nodeos endpoints
      • http://localhost:8888/v1/chain/get_info
    • Find keosd IP
      • sudo docker network inspect eosdev

Create Hello World Smart Contract

- `sudo docker exec -it keosd bash`
- CREATE: `eosiocpp -n HelloWorld`
- `cd HelloWorld`
- COMPILE:
	- `eosiocpp -o HelloWorld.wasd HelloWorld.cpp`
	- `eosiocpp -g HelloWorld.abi HelloWorld.hpp`
- DEPLOY:
	- `cd ..`
	- `cleos --wallet-url http://127.0.0.1:9876 set contract myaccount HelloWorld`

Code

Orgs

EOS Rush Through Concepts

  • 500ms Block Intervals
    • Ethereum is 30,000ms
    • Bitcoin is ... 10min - aka forever
  • 1 Block is TX
    • Transaction ID
    • etc
  • Free TXes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published