Skip to content

Commit 12ec34e

Browse files
Updates Register guide to use programmatic CLI. (#256)
1 parent f629cdc commit 12ec34e

File tree

1 file changed

+43
-12
lines changed

1 file changed

+43
-12
lines changed

content/guides/register-an-account.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,60 @@ lead: "Registering an account is a feature unique to Entropy. Without going into
88
Here is the process for registering an address using the Entropy CLI's interactive text-based user interface (TUI).
99

1010
1. Start the CLI by running `entropy tui`.
11-
1. Back at the main menu within the CLI, select **Register**:
11+
1. Select **Register**:
1212

13-
```output
14-
? Select Action
13+
```output
14+
? Select Action (Use arrow keys)
1515
Manage Accounts
16+
Entropy Faucet
1617
Balance
17-
> Register
18+
Register
1819
Sign
1920
Transfer
2021
Deploy Program
2122
User Programs
2223
Exit
23-
```
24+
```
2425
25-
1. The CLI will send your selected account information to the network. As long as you have enough funds in your account, the network will register your account.
26+
1. The CLI will send your selected account information to the network. As long as you have enough funds, the network will register your account.
2627
27-
```output
28-
Attempting to register the address: 5Dcps2RdXPQfiJBxxDnrF8iDzDHcnZC8rb5mcJ3xicqzhYbv
29-
Your address 5Dcps2RdXPQfiJBxxDnrF8iDzDHcnZC8rb5mcJ3xicqzhYbv has been successfully registered.
30-
```
28+
```output
29+
Attempting to register the address: 5EFDfxft4oZYvjj35TWttFkkKZSHUDVnBRmp3eMQQcpt9zku
30+
Your address 5EFDfxft4oZYvjj35TWttFkkKZSHUDVnBRmp3eMQQcpt9zku has been successfully registered.
31+
```
3132
3233
1. Press `Y` to go back to the main menu.
3334
34-
## SDK
35+
You can check that your account is registered by navigating to **Manage Accounts** and selecting **List Accounts**. Accounts that have been registered will have `verifyingKeys`:
3536
36-
The feature is not currently available in the SDK.
37+
```output
38+
{
39+
"name": "Andre",
40+
"address": "5F3xmKa3WRkoHR4o6XjFQaWF2EskhtSh4ST5wY5cfsD9JYbC",
41+
"verifyingKeys": []
42+
}
43+
{
44+
"name": "Yoel",
45+
"address": "5EFDfxft4oZYvjj35TWttFkkKZSHUDVnBRmp3eMQQcpt9zku",
46+
"verifyingKeys": [
47+
"0x03aee03ad9862e9f31d06f7d1b4b388ad1c66152ad17f919fc16fcc75929b08db3",
48+
"0x029d00ff44b70613228963e45a05fe743ea92beb8ece19d48fb6c60d66386fe03b"
49+
]
50+
}
51+
```
52+
53+
In the above example, the `Yoel` key has been registered, while the `Andre` key has not.
54+
55+
## Programmatic CLI
56+
57+
You can use the `account register` commands to register an account. You must have created an account _before_ attempting to register it. The account must also have enough funds to request registration from the network. After a successful registration, the CLI will output the verifying key of the account:
58+
59+
```shell
60+
entropy account register --account 'Yoel'
61+
```
62+
63+
```output
64+
0x029d00ff44b70613228963e45a05fe743ea92beb8ece19d48fb6c60d66386fe03b
65+
```
66+
67+
See the [Command-line interface reference]({{<relref "command-line-interface">}}) section for more details on the `account register` commands.

0 commit comments

Comments
 (0)