It is required to have a source to build a node. Please open either terminal or Shell and enter the following command.
# Source clone
~# git clone --recursive [source URL]
~# cd eos
~# ./script/eosio_build.sh
After completing the build, set "eos/build/bin" folder as the environment variable.
Wallet and Key issuance
Issuing Wallet
Wallet is used to do a transaction signature by storing the private key to the encrypted file.
Use the following command to create a wallet.
# [Local directory]/eos/build/bin/ Register the folder as environment variables to enter command simply.
~# cleos wallet create --to-console
# in a case when the environment variable is not set, please use it as below.
# This command will be omited from the next step.
~# [local directory]/eos/build/bin/cleos wallet create --to-console
Log as below will be generated as the following command executes.
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5KeERwdF3trFFpd....................t42S9XCw2"
Please store the password where it cannot be exposed.
opening the Wallet
When starting keosd instance, the wallet is locked in default.
Execute the following command to Open the Wallet.
~# cleos wallet open
Checking wallet list
~# cleos wallet list
Wallets:
[
"default"
]
Wallet unlock
Wallet my be open through "cleos wallet open" command but it is still at unlocked status.
unlock by using the wallet password stored above.
~# cleos wallet unlock
when a message that indicates to enter a password appears, enter it then press enter.
Next, execute the following command.
~# cleos wallet list
Wallets:
[
"default *"
]
Please check whether it has the asterisk behind default on the list.
The asterisk indicates that the wallet is not locked.
Issuing Private Key
Private Key can be issued through cleos.
Execute the following command to issue Private Key.
When error as below occurs, terminate keosd that is running on the background by using pkill keosd command then type keosd &.
Failed to lock access to wallet directory; is another keosd running?
{}
thread-0 wallet_manager.cpp:304 initialize_lock
message as below will be printed if it is executed normally.
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/node/get_supported_apis
info 2020-07-16T02:49:20.505 thread-0 wallet_api_plugin.cpp:69 plugin_startup ] starting wallet_api_plugin
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/create
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/create_key
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/get_public_keys
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/import_key
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/list_keys
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/list_wallets
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/lock
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/lock_all
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/open
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/remove_key
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/set_timeout
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/sign_digest
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/sign_transaction
info 2020-07-16T02:49:20.505 thread-0 http_plugin.cpp:699 add_handler ] add api url: /v1/wallet/unlock
Executing Node
Next, is a command that executes Node.
When a command is executed it loads the default plug-in, sets the server address, uses CORS, adds contract partially, and records debugging and logs.