user-guide
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide assumes that you have aecli
and you checked the .
The account (wallet) are those which create and report on key pairs, and sign transactions, messages. To within aeternity, you need to have at least two wallets with some coins on their accounts.
Use to create a new wallet. You can specify a password for accessing your wallet or just press Enter if you do not want to set a password. The wallet is created at the specified path.
Alternatively, you can pass the secret key in [secretKey]
argument to generate a corresponding wallet.
View the address (public key) of your wallet using command. Also, it can be used to reveal your secret key.
A smart contract is a computer protocol intended to digitally facilitate, verify, or enforce the negotiation or performance of a contract. Smart contracts allow the performance of credible transactions without third parties. These transactions are trackable and irreversible. Smart contracts aim to provide security that is superior to traditional contract law and to reduce other transaction costs associated with contracting.
deploy
Here is an example contract that we will deploy
call
In the above, the "Return value (decoded)" is a result of contract execution — it is a sum of values 1 and 2.
inspect account by address
inspect transaction
inspect block
One of aecli
use cases is offline signing. It requires the below steps.
With the aeternity naming system (AENS), you can assign and register a name to your account or oracle. This way, instead of a complex hash, you can use a name you choose. These names have an expiration period, after which the name will no longer belong to anyone, so it can be claimed again. For more information, see docs.
The name group consists of the .
Use to create and register a name for your account.
After that, you can use command to set a name pointer. You can assign the name to another account via pointers, you will still have the right to do other operations with this name.
Don't forget to run from time to time to don't lose access to your name. By default name TTL gets extended to one year, it can't be extended for a longer period.
You can a name to another account or contract, just indicate another account's address. You will pass all rights regarding the name to another account.
At last, you can revoke your name using . The revoked name can be claimed again after a fixed timeout of 2016 blocks (~ 4 days).
The contracts group consists of the .
To deploy a contract, run adding a file that should be compiled.
To execute a function of the contract, run command. sum
is a function which is executed by this contract, [1, 2]
are arguments of this function:
display basic information about the blockchain and require little explanation. moves backward through the blockchain displaying blocks and transactions.
The command allows you to see inside various æternity types. Because each æternity type starts with two letters identifying what sort of thing it is, you can throw anything you like at inspect, and it will bravely try to do the right thing.
prepare a transaction using on any device;
optionally run to verify the generated transaction before signing on offline device;
sign the transaction by on offline device;
broadcast signed transaction using on a device connected to the internet.