Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the method of creating EOS account and querying information

Shulou Source: shulou.com Published: 2022-06-01 02:25:57 09月25日 Update

This article mainly introduces the EOS account creation and information query methods of what is the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe that everyone after reading this EOS account creation and information query method is what the article will have a harvest, let's take a look.

An account can be regarded as an online access certificate. Nodeos manages the posting of accounts on the blockchain and the behavior associated with them. We achieve account management through the interaction between cleos and nodeos.

There is no natural connection between the wallet and the account. The account does not know the existence of the wallet, whereas the wallet does not know the existence of the account.

To perform operations on the block chain, an account is required. We use cleos to initiate a request to nodeos to create an account and publish the account to the block chain. Before we can create an account, we must make sure that nodeos is running.

1. Create a new account

The account needs to be created by another account. "eosio" is an authorized account. The eosio account must be used to sign when operating on the block chain. The eosio account is also a special account to start the EOSIO node, and its password pair information can be found in the nodeos configuration file (default is ~ / .local / shared/eosio/config/config.ini).

Assuming you follow the instructions in the previous wallet management article, you should now have an unlocked wallet that contains three key pairs.

Make sure you are using the public key you generated, not the one shown below.

$cleos-- wallet-url http://wallet:5555-u http://server:7777 create account eosio mynewaccount {MyNewAccount owner Public Key} {MyNewAccount active Public Key} $cleos-- wallet-url http://wallet:5555-u http://server:7777 create account eosio mynewaccount EOS7EzCEh94uN2k59wznzsZDcFVnpZ3wuiYvPSbb8bXDS6U7twKQF EOS5tJQSKKeiTUZEutPo9SWUoCeovV43kWxGuW21K663frcHw7GnN

Command description:

$cleos create account ${authorizing_account} ${new_account} ${owner_key} ${active_key}

Authorizing_account: the authorized account name, which is used to pay for account creation and other subsequent new accounts.

New_account: the new account you want to create.

Owner_key: the public key of the account with the owner's permission (see account and permissions for details).

Active_key: you want to assign the active permission public key.

The response should look like this:

Executed transaction: d4a764ae9c728f9a2c95537613445f059e4833d1cde12504f6d6e88ec10951ab 352 bytes 102400 cycles# eosio

Tags: Account account information query public key account wallet method block permission knowledge management content name status article special inter value internal Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS OPPO Reno MySQL Xiaomi MariaDB