Mina Accounts
Last updated
Was this helpful?
Last updated
Was this helpful?
Officially there are no accounts in Mina, and all users operate in Mina blockchain through their addresses that have a public key - i.e. the part of the account address that is seen by the other blockchain community and serves as the part that helps to identify an address in Mina blockchain. An account also has a private key - the secret part of the account that is used for authorization purposes. However, we operate with this term - account - for convenience reasons. Figure 1 shows how accounts and addresses are related in Mina.
Basically, there are 4 ways you can make a profit in the Mina blockchain:
Running a node. If you run a validator, you can maintain the consistency of Mina blockchain by producing new blocks. For this you get a reward.
Running a staking provider. If you run a staking provider (validator), you can provide your node to delegators for staking. In return you get a validator fee.
ZK-snark works. If you run a ZK-snarker, you can provide ZK snark proofs for validators and get a fee for that.
Staking and delegation. If you don’t run a node, but you’re willing to participate in staking, you can delegate your Mina funds to one of its validators hoping to get your part of the validator’s reward. If run a validator, to whom funds were delegated, you get a validator fee for that.
Depending on how accounts make a profit and how they operate in Mina, all accounts come into two groups: nodes and non-nodes. Non-nodes come as delegators, who make profit by delegating funds to validators hoping to get their part of the block production reward, and other accounts that execute transactions in Mina blockchain. Nodes, in their turn, are computers that are connected to Mina blockchain and maintain its operation. Nodes come as ZK-snarkers that do snark-works, validators (that are also known as block producers and staking providers - depending on their role) that are involved in block production and archive nodes, that keep the blockchain data in an uncompressed (unSNARKed) database, in order to provide easy access to the chain’s history. At the same time, there are validators that actively produce blocks and validators that don’t produce blocks or even have produced no block so far since the Genesis. The validators that produce blocks are active validators. This is not an original Mina term, however, we believe it to be important to distinguish the validators that actively produce blocks, since this information may be of importance for our users. Figure 2 shows how the aforementioned notions correlate.
A validator as an account can have two addresses: a node address, through which it operates, and a coinbase address, to which rewards are transferred (see Figure 3).
An account is created via Mina SDK or by a node through CLI. and activated in Mina by the following flow (see Figure 4):
A virtual address is created - not in the blockchain - but it is generated either by a node or via CLI.
A private key is assigned.
An address appears in Mina blockchain once it gets funds - at least 1 Mina.
The accrued assets are debited from the account balance.
The address gets into the snarked ledger.
At the 290th block of the next epoch it gets into the next epoch ledger.
At the 1st block of the epoch afterwards the address gets into the Staking ledger and the Staged ledger.
See .
See .
See
For more information on the ledgers please go to .