No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

EOS Pixels - Paint pixels, earn tokens!

The first collaborative artwork on blockchain.

The first collaborative artwork on blockchain.


Go to contracts folder:

cd contracts

Install project dependencies:


Local EOS test network extra steps

Run nodeos in docker:

# cd to path-to-repo/contracts frist
yarn nodeos:docker

# alias cleos
alias cleos='docker exec -it eosio /opt/eosio/bin/cleos -u --wallet-url'

Initialize wallet if not already

cleos wallet create
# Remember to save the password
cleos wallet import --private-key 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3

Create EOS token if not already

Create eosio.token account:

cleos create account eosio eosio.token EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

Deploy eosio.token contract:

cleos set contract eosio.token contracts/eosio.token -p eosio.token@active

Create EOS token:

cleos push action eosio.token create '[ "eosio", "1000000000.0000 EOS"]' -p eosio.token

Compile & Deploy

Note: For Kylin Testnet or Jungle Testnet, you need to create the contract account on the corresponding website first, and then you also need to buy some ram using faucet supply tokens.

Copy the .env.template to .env and add your private key there and edit your contract name and network node infomations.

Kylin Testnet example configuration:


Compile and deploy contracts:

# Local EOS test network
yarn start:docker

# yarn start


Tip: for local eos testnet, you won't get error detail from api respond, use docker logs --tail 10 -f eosio to trace the chain logs.

Clear docker data:

# stop and remove container
docker stop eosio

# remove data
yarn clear:docker

Update contract (recompile and deploy):

# Local EOS test network
yarn update-contract:docker

# yarn update-contract

Create new canvas after current canvas is done:

yarn @end

Create new canvas automatically:

yarn @autoend

Withdraw using tester account:

yarn @withdraw '0.0010 EOS'

Inspecting the contract's tables:

yarn dump-tables