美文网首页
EOS常用命令(转)

EOS常用命令(转)

作者: NanoLeak | 来源:发表于2018-06-10 23:45 被阅读0次

    //第一步 创建钱包
    cleos wallet create
    //第二步 执行合约
    cleos -u http://192.168.1.121:8888 set contract eosio /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/eos/build/contracts/eosio.bios -p eosio
    //第三步创建key
    cleos create key
    //4.导入钱包
    cleos wallet import private-key
    //5.用eosio创建eosio.token账户
    cleos -u http://192.168.1.121:8888 create account eosio eosio.token EOS8auHaGBT1XMbmPQWrBJyGgGp8pwVsBvyXGXqQ8RHVvHRsaEpfE EOS7fYHb5NMNwP762EvRZ5mruXvkKPJeV86fm7Grsm1QCpHXR7yyr
    //6.执行eosio.token 合约
    cleos -u http://192.168.1.121:8888 set contract eosio.token /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/eos/build/contracts/eosio.token -p eosio.token
    //7.创建代币
    cleos -u http://192.168.1.121:8888 push action eosio.token create '[ "eosio", "1000000000.0000 LLKJEOS", 0, 0, 0]' -p eosio.token
    //8.发代币
    cleos -u http://192.168.1.121:8888 push action eosio.token issue '[ "user", "100.0000 LLKJEOS", "memo" ]' -p eosio
    //9.转代币
    cleos -u http://192.168.1.121:8888 push action eosio.token transfer '[ "user", "tester", "25.0000 LLKJEOS", "hellow" ]' -p user
    //10.查询余额
    cleos -u http://192.168.1.121:8888 get currency balance eosio.token user
    //11.查询key的绑定者
    cleos -u http://192.168.1.121:8888 get accounts EOS7fYHb5NMNwP762EvRZ5mruXvkKPJeV86fm7Grsm1QCpHXR7yyr
    //12.解锁钱包
    cleos wallet unlock -n second-wallet --password PW5JLG2tSQDUhtujGzy4Tz5Wv7SZu2an97UfmPSeA13cLxSJi34mz

    cleos wallet unlock --password 5KdjDfuTiWA5XVBvdSa67rc3VmosxF2LhnWX8K1UtJPwVLMjHDB

    //修改
    nodeos --config-dir /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/yjl/nodeos/config
    nodeos --data-dir /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/yjl/nodeos/data

    //获取账户信息
    cleos get account eosio.token

    //创建账户 eosio (eosio.token,exchange,eosio.msig)

    cleos set contract eosio /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/eos/build/contracts/eosio.bios -p eosio

    //设置合约

    cleos -u http://192.168.1.121:8888 set contract exchange /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/eos/build/contracts/exchange -p exchange

    cleos -u http://192.168.1.121:8888 set contract eosio.msig /media/yjl/32c65838-efbe-4218-97fc-fc5e9023a4c5/eos/build/contracts/eosio.msig -p eosio.msig
    //获取keys
    cleos wallet keys

    相关文章

      网友评论

          本文标题:EOS常用命令(转)

          本文链接:https://www.haomeiwen.com/subject/tfzqeftx.html