Tribizz
|
|
October 04, 2017, 03:53:18 PM |
|
Your ReadMe.md is not even giving specific instruction........ # Configuration file
To connect to a peer, you need to set an address
"peer": "peer.testnet.eontechnology.org:9443",
Seed for the account on behalf of which we will sign transactions
"seed": "...",
Transaction’s secondary fields, are needed to manage the commission and the transaction lifetime
"deadline": 60, "fee": 10,
# Command description
List of commands available
Command | Description :-----------|:-------- refill | Transfer coins from deposit to account withdraw | Transfer coins from account to deposit payment | Transfer/Send coins to another account new_account | Create a new network account using its public key commited | Transactions that entered the blockchain uncommited | Transactions that did not enter the blockchain state | Account state in the network attributes | Attributes of the network of peers maintaining the blockchain info | View EON_id and public key seed | Generate a public key for a new account
## Examples
A brief hint with a list of possible commands to use: ``` d:\gopath\eon>eon Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed end... ```
--- Commands commited, uncommited, state can be executed without specifying an account identifier.
The current user account from the configuration file will be used by default. ``` d:\gopath\eon>eon state Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Answer on GetState() for EON-GUNFH-TF5TS-XACVY { "state": { "code": 200, "name": "OK" }, "amount": 0, "deposit": 0 } <nil> end... ```
---
You can check any network account state with its eon_id. ``` d:\gopath\eon>eon state EON-2NTFF-EVEMG-7MBAL Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Answer on GetState() for EON-2NTFF-EVEMG-7MBAL { "state": { "code": 404, "name": "Not Found" }, "amount": 0, "deposit": 0 } <nil> end... ```
---
Public key generation for a new account. A string of random symbols is created and on its bases EON_id and public key are figured out. ``` d:\gopath\eon>eon seed Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed Generate seed for EON account Seed: 7f5fe139227145f4c3aa07e38514a42e58d0547a6ad40f9ceb4bb60eaa774099 Account: EON-F39NB-WKG3X-Z8X2Y Public key: a5747df986643ac60f3dda2b7fb8a0e42320955241fcfa35cdad1728a3fa08bc end... ```
---
Here are EON_id and public key needed to register the network account for the account described in configuration file. ``` d:\gopath\eon>eon info Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed EON account from seed Seed: 7f5fe139227145f4c3aa07e38514a42e58d0547a6ad40f9ceb4bb60eaa774099 Account: EON-F39NB-WKG3X-Z8X2Y Public key: a5747df986643ac60f3dda2b7fb8a0e42320955241fcfa35cdad1728a3fa08bc end... ```
---
After you register on the network you can create additional accounts on your behalf. Public key for the new account is set in the account creation function parameters . You can get it using the function < eon seed > or < eon seed new_SEED > ``` d:\gopath\eon>eon new_account ef3d2b2076f22c77de00e63aece55b5a43edb6b4361b0ec9703fe46774ece87f Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed Create new EON account Seed: New account: EON-CTVEM-LPNU2-FJPLK Public key for account: ef3d2b2076f22c77de00e63aece55b5a43edb6b4361b0ec9703fe46774ece87f
Maker for new account: EON-GUNFH-TF5TS-XACVY Network id: EON-B-JYJWW-6JX28-WRTEP Timestamp: 1507109958 ```
---
Use commands refill, withdraw, payment to work with funds in your account.\ The amount of funds to be sent is set in microEONs: amount( 1 000 000 ) = 1EON\
Transfer coins from deposit to account. ``` d:\gopath\eon>eon refill 115 Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Deposit refill, deposit funds to participate in the generation of blocks Amount:115 ```
---
Transfer coins from account to deposit ``` d:\gopath\eon>eon withdraw 126 Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Deposit withdrawm, stop participating in the generation of blocks Amount:115 ```
---
Transfer/send coins to another account. ``` d:\gopath\eon>eon payment EON-CTVEM-LPNU2-FJPLK 563 Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Ordinary payment, transfer of coins between two accounts to EON account:EON-CTVEM-LPNU2-FJPLK Amount:563 ```
---
View transactions sent and signed by a certain subscriber. Check which of them have already entered the blockchain and which ones have not. If you do not specify Eon_id the command will display information for the account from the configuration file. ``` d:\gopath\eon>eon commit Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Answer on GetCommitedTransactions() for EON-GUNFH-TF5TS-XACVY { "all": [] } <nil> end... ```
---
You can specify EON_id for any account, viewing does not require special access rights. ``` d:\gopath\eon>eon uncommit EON-JYJWW-6JX28-WRTEP Client for EON peer, 2017 v0.10 command available to use: refill, withdraw, payment, new_account commited, uncommited, state, attributes, info, seed
Answer on GetUnCommitedTransactions() for EON-JYJWW-6JX28-WRTEP { "all": [] } <nil> end... ```
3.10.2017
|