New account
The Unix example allows you to create a new random account.
Last updated
Was this helpful?
The Unix example allows you to create a new random account.
Last updated
Was this helpful?
The first time you launch the example, you might want to generate a new account that will then be used. There are two ways to do so: from the Unix example we provide or using Algorand's algokey
tool.
Both ways will use the same format to store the keys using two files:
private_key.bin
for the private key, stored in binary format;
public_b32.txt
for the account address in plain text (base-32 format).
Use the flag -n
to allow unix_example
to generate a new random account. The account is then stored inside a binary file where the private and public keys are concatenated in binary format.
Below is the example running:
Taking a look at the log, you will see that:
The path to the file storing the keys is displayed /path/to/c-vertices-sdk/examples/unix/config/
.
The created account is also displayed in base-32 format: IZV2H3YRLCPOTUL5ATG5T3TRMUEXKLOGFWYO34NVKRMTXKZO2OOAJ34IWI
.
Once you have dispensed money on the account, you can go to the next step! ๐
You are now ready to send your first transaction ๐.
Following the last two lines, you then need to go to to fund the freshly generated account: IZV2H3YRLCPOTUL5ATG5T3TRMUEXKLOGFWYO34NVKRMTXKZO2OOAJ34IWI
.
You can also choose to generate a new account using the tool provided with the Algorand node: :
In order to use the account, you need to store the files in the example config
folder. The example program will then be ready to use, as soon as you . You will find the public key in public_b32.txt
.