Common steps for creating EOS account and issue token

Thảo luận trong 'Blockchain research' bắt đầu bởi EOS, 5/6/18. Trả lời: 2 Xem: 428.

  1. EOS

    EOS Moderator

    Bài viết:
    6
    Đã được thích:
    0
    The following steps must be taken for the example script to work.

    1. Create wallet
    2. Create account for eosio.token
    3. Create account for scott
    4. Create account for exchange
    5. Set token contract on eosio.token
    6. Create EOS token
    7. Issue initial tokens to scott
    Note: Deleting the transactions.txt file will prevent replay from working.

    Create wallet
    cleos wallet create

    Create account steps
    cleos create key

    cleos create key

    cleos wallet import <private key from step 1>

    cleos wallet import <private key from step 2>

    cleos create account eosio <account_name> <public key from step 1> <public key from step 2>

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

    Create EOS token steps
    cleos push action eosio.token create '{"issuer": "eosio.token", "maximum_supply": "100000.0000 EOS", "can_freeze": 1, "can_recall": 1, "can_whitelist": 1}' -p eosio.token@active

    Issue token steps
    cleos push action eosio.token issue '{"to": "scott", "quantity": "900.0000 EOS", "memo": "testing"}' -p eosio.token@active
     
    Tags:
  2. eos to the moon

    eos to the moon Thành viên

    Bài viết:
    88
    Đã được thích:
    3
    ---------------------------------------------SAMPLE----------------------------------------------------

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet create --name manhht
    Creating wallet: manhht
    Save password to use in the future to unlock this wallet.
    Without password imported keys will not be retrievable.
    "PW5Je8obUZuzwj6eYceo7G51na8w4LWFVEWKKeVgs3KmZ4N8RjxBd"

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import --name manhht 5Jjy4fxvV3nFzS7LA3Vd7benTUuwQUNCZ7CUEiSMqpRpkvJRdjC
    imported private key for: EOS6451z7vgFHzGxqNFLu6HKE5NfSZVgMDrUPKjvMq8qkYX6qxM5i


    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import --name manhht 5J1n5x1vKvMX1GFDFwC7rNyriiQCp9vqgEMS8rzovCbrRWgmcJc
    imported private key for: EOS6DbtyWzn8XUEcisHPCDkTpseQ9QmRdA5vSKyTmv7r97YexzaMC

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eos.vn EOS6451z7vgFHzGxqNFLu6HKE5NfSZVgMDrUPKjvMq8qkYX6qxM5i EOS6DbtyWzn8XUEcisHPCDkTpseQ9QmRdA5vSKyTmv7r97YexzaMC
     
  3. eos to the moon

    eos to the moon Thành viên

    Bài viết:
    88
    Đã được thích:
    3
    -------------------------------------------------------setup node steps------------------------------------------

    cleos create key
    Private key: 5K9MWdQiT4LirHD99d5bHGX2YfX4NPNdaF9AQdXHb2KtHkzUhEt
    Public key: EOS5B558HgxwZq61D9Z2C1uWrRqh9FfV14UjXEgKMUiFRWFjArfPD

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5K9MWdQiT4LirHD99d5bHGX2YfX4NPNdaF9AQdXHb2KtHkzUhEt
    imported private key for: EOS5B558HgxwZq61D9Z2C1uWrRqh9FfV14UjXEgKMUiFRWFjArfPD

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.bpay EOS5B558HgxwZq61D9Z2C1uWrRqh9FfV14UjXEgKMUiFRWFjArfPD

    -----------------------------------------------------------------------------------------------------

    cleos create key
    Private key: 5JraXSe3AtakWpq6WTQR4iYdcuRFwADPLFJYPqH88ggKVyFM5go
    Public key: EOS4zbtFCnGvQwVX11kCYAcaRdoT8iuMSMVtBCacYiX29j6xF2QeC

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5JraXSe3AtakWpq6WTQR4iYdcuRFwADPLFJYPqH88ggKVyFM5go
    imported private key for: EOS4zbtFCnGvQwVX11kCYAcaRdoT8iuMSMVtBCacYiX29j6xF2QeC

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.msig EOS4zbtFCnGvQwVX11kCYAcaRdoT8iuMSMVtBCacYiX29j6xF2QeC

    -----------------------------------------------------------------------------------------------------


    cleos create key
    Private key: 5KRgGTvrHdd7SW7NMwKZZ3FKfDFfTXPbJ4dJ8zeda5BjSJ6hMrn
    Public key: EOS8GYfKcVB9cz8RNmS98irFfG27FhS44WnLq3ZqcLKXKxrcKNe8F

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5KRgGTvrHdd7SW7NMwKZZ3FKfDFfTXPbJ4dJ8zeda5BjSJ6hMrn
    imported private key for: EOS8GYfKcVB9cz8RNmS98irFfG27FhS44WnLq3ZqcLKXKxrcKNe8F

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.names EOS8GYfKcVB9cz8RNmS98irFfG27FhS44WnLq3ZqcLKXKxrcKNe8F

    -----------------------------------------------------------------------------------------------------

    cleos create key
    Private key: 5Jsc6f7AP6ymvAh4HbdspNZ5UyLyAGHi2saMmyJCgM2i3a6rdkf
    Public key: EOS5YvX4tNKDqTBbP81RggCJCittJkGgPfLovwSTYN3EZvQmhPfGS

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5Jsc6f7AP6ymvAh4HbdspNZ5UyLyAGHi2saMmyJCgM2i3a6rdkf
    imported private key for: EOS5YvX4tNKDqTBbP81RggCJCittJkGgPfLovwSTYN3EZvQmhPfGS

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.ram EOS5YvX4tNKDqTBbP81RggCJCittJkGgPfLovwSTYN3EZvQmhPfGS

    -----------------------------------------------------------------------------------------------------


    cleos create key
    Private key: 5JrFPN45QkmeURkUcvwCaWWkP8uXFG3o8gFzZWkcrMYHpffSjhv
    Public key: EOS7D7d7iny7yspikfvwdH6wcQpms1gMwdovFvXUm9Nhnp7WrtbYu

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5JrFPN45QkmeURkUcvwCaWWkP8uXFG3o8gFzZWkcrMYHpffSjhv
    imported private key for: EOS7D7d7iny7yspikfvwdH6wcQpms1gMwdovFvXUm9Nhnp7WrtbYu

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.ramfee EOS7D7d7iny7yspikfvwdH6wcQpms1gMwdovFvXUm9Nhnp7WrtbYu

    -----------------------------------------------------------------------------------------------------
    cleos create key
    Private key: 5K3Uer6PapT31PEaobZGE4zfp8htDkb8mXHenTgHyoxGbNVn17a
    Public key: EOS53rqMQfT83FYHBgygWrgaSafhGeJFhwk9oFrSFQyTeVWgMWYWZ

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5K3Uer6PapT31PEaobZGE4zfp8htDkb8mXHenTgHyoxGbNVn17a
    imported private key for: EOS53rqMQfT83FYHBgygWrgaSafhGeJFhwk9oFrSFQyTeVWgMWYWZ

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.saving EOS53rqMQfT83FYHBgygWrgaSafhGeJFhwk9oFrSFQyTeVWgMWYWZ

    -----------------------------------------------------------------------------------------------------

    cleos create key
    Private key: 5JgfDVcuXM8qf4UScbEQQimecGf3iU1UrgUdSLQz1XUw7kfRdNb
    Public key: EOS6KvinThoU7Jg29rdrZuNkZsnojPNgbrf5ELrpxSpWrW35xcfjQ

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5JgfDVcuXM8qf4UScbEQQimecGf3iU1UrgUdSLQz1XUw7kfRdNb
    imported private key for: EOS6KvinThoU7Jg29rdrZuNkZsnojPNgbrf5ELrpxSpWrW35xcfjQ

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.stake EOS6KvinThoU7Jg29rdrZuNkZsnojPNgbrf5ELrpxSpWrW35xcfjQ

    -----------------------------------------------------------------------------------------------------

    cleos create key
    Private key: 5KQmYWSkoLMGEvA7XpLuq17BiHo9k6G29qEmSPHzqG6yLpacdbG
    Public key: EOS5pphMuDxFUtCjcZddf1A4T1v93Zn2TwTXprEjEzr5rHgtcpWpb

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5KQmYWSkoLMGEvA7XpLuq17BiHo9k6G29qEmSPHzqG6yLpacdbG
    imported private key for: EOS5pphMuDxFUtCjcZddf1A4T1v93Zn2TwTXprEjEzr5rHgtcpWpb

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.token EOS5pphMuDxFUtCjcZddf1A4T1v93Zn2TwTXprEjEzr5rHgtcpWpb

    -----------------------------------------------------------------------------------------------------

    cleos create key
    Private key: 5JyFBYzHB8WTVvgJtf38rmi6bB9U2qftUCZ3vx65SRrgZC6vgPa
    Public key: EOS7MwyivQWSvXV8TGCxoTTLZM6hRWoPQ26yZshyEncjpWMxnQP4g

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 wallet import 5JyFBYzHB8WTVvgJtf38rmi6bB9U2qftUCZ3vx65SRrgZC6vgPa
    imported private key for: EOS7MwyivQWSvXV8TGCxoTTLZM6hRWoPQ26yZshyEncjpWMxnQP4g

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 create account eosio eosio.vpay EOS7MwyivQWSvXV8TGCxoTTLZM6hRWoPQ26yZshyEncjpWMxnQP4g

    -----------------------------------------------------------------------------------------------------

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 set contract eosio.token contracts/eosio.token
    Reading WAST/WASM from contracts/eosio.token/eosio.token.wasm...
    Using already assembled WASM...
    Publishing contract...
    executed transaction: b991f5551c15905fae9b257b8a0894c8ac334e1788b83a59c0d36a6b46f0a1d0 8104 bytes 23841 us
    # eosio <= eosio::setcode {"account":"eosio.token","vmtype":0,"vmversion":0,"code":"0061736d01000000017e1560037f7e7f0060057f7e...
    # eosio <= eosio::setabi {"account":"eosio.token","abi":"0e656f73696f3a3a6162692f312e30010c6163636f756e745f6e616d65046e616d65...
    warning: transaction executed locally, but may not be confirmed by the network yet

    -------------------------------------------------------------------------------------------------------------------
    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 set contract eosio.msig contracts/eosio.msig
    Reading WAST/WASM from contracts/eosio.msig/eosio.msig.wasm...
    Using already assembled WASM...
    Publishing contract...
    executed transaction: 3c749f094e41e0e4d058d0dbad78bddc7582f2c928b638ee4d414d01c02a5f1f 8864 bytes 2417 us
    # eosio <= eosio::setcode {"account":"eosio.msig","vmtype":0,"vmversion":0,"code":"0061736d010000000198011760017f0060047f7e7e7...
    # eosio <= eosio::setabi {"account":"eosio.msig","abi":"0e656f73696f3a3a6162692f312e30030c6163636f756e745f6e616d65046e616d650...
    warning: transaction executed locally, but may not be confirmed by the network yet

    -------------------------------------------------------------------------------------------------------------------
    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 push action eosio.token create '["eosio", "10000000000.0000 VNCOIN" ]' -p eosio.token
    executed transaction: 74ad7bc10807534240bbd80db0649fbde84a74d9eb757a82a401ef9cfc20aa4e 120 bytes 2061 us
    # eosio.token <= eosio.token:: create {"issuer":"eosio","maximum_supply":"10000000000.0000 VNCOIN"}

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 push action eosio.token issue '["eosio", "1000000000.0000 VNCOIN", "memo" ]' -p eosio
    executed transaction: 8440480e80cbb147aa1537e475c7e63acd74f77f3573834c0a5a71da882da0f1 128 bytes 962 us
    # eosio.token <= eosio.token::issue {"to":"eosio","quantity":"1000000000.0000 VNCOIN","memo":"memo"}


    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 set contract eosio contracts/eosio.system

    cleos --url http://localhost:8888 --wallet-url http://localhost:8899 push action eosio setpriv '["eosio.msig", 1]' -p eosio@active
     

Chia sẻ trang này lên mạng xã hội:

Đang tải...