How to create a token on the EOS Blockchain

in utopian-io •  7 years ago  (edited)

Fast and 0fee token transactions!!

⚡ My previous video, how to set up the development environment https://steemit.com/eos/@luigi-tecnologo/eos-smart-contracts-development-environment-set-up-with-docker

cleos wallet unlock --password PW5KiicvVXaJFAsQM3bf9NAQCMdUmb2mgmbD3ckPrH4Eviw6HAAbb
cleos wallet import 5KVZF2vxY4ENugwDw2tCdYLmG7LzSyAc2KEk3x8HFeXtVFP1Xnk

# cleos create key
# Private key: 5KVZF2vxY4ENugwDw2tCdYLmG7LzSyAc2KEk3x8HFeXtVFP1Xnk
# Public key: EOS7ftQ12qreTrSN5BEP7WAJ5RZQg45pu4byhNcpioMEVr6CrnoPm
# cleos wallet keys
 
cleos create account eosio luigi EOS7ftQ12qreTrSN5BEP7WAJ5RZQg45pu4byhNcpioMEVr6CrnoPm EOS7ftQ12qreTrSN5BEP7WAJ5RZQg45pu4byhNcpioMEVr6CrnoPm
cleos create account luigi luigi.token EOS7ftQ12qreTrSN5BEP7WAJ5RZQg45pu4byhNcpioMEVr6CrnoPm EOS7ftQ12qreTrSN5BEP7WAJ5RZQg45pu4byhNcpioMEVr6CrnoPm
# cleos get accounts EOS7ftQ12qreTrSN5BEP7WAJ5RZQg45pu4byhNcpioMEVr6CrnoPm
cp contracts/eosio.token/ . -R
eosiocppfix -o eosio.token/eosio.token.wast eosio.token/eosio.token.cpp

cleos set contract luigi.token eosio.token -p luigi.token
cleos push action luigi.token create '[ "luigi", "100.0000 GGG", 0, 0, 0]' -p luigi.token
cleos push action luigi.token issue '[ "luigi", "99.0000 GGG", "memo" ]' -p luigi
cleos get currency balance luigi.token luigi
cleos push action luigi.token transfer '[ "luigi", "eosio", "15.0000 GGG", "m" ]' -p luigi

Congratulation, You created your token on EOS local Testnet blockchain!

steem

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

follow me and i follow you