Accounts
Dartez init
The function init the sodium libs used in mnemonic and private key functions
Get Balance
This function returns the balance of tezos account on a particular tezos network.
Generate Mnemonics
This function will return a new set of mnemonic phrases as a space separated words, which is used for generating key pairs for tezos account.
The mnemonic must encode entropy in a multiple of 32 bits. With more entropy security is improved but the sentence length increases. We refer to the initial entropy length as strength. The allowed size of strength is 128-256 bits. (The default value of strength is 256)
The generateMnemonic function follows implementations of BIP-0039.
Generate Keys From Mnemonics
This function will generate a new set of keys using mnemonic & passphrase, which can be used for interacting with tezos blockchain.
Reveal An Account
This function reveal an account's publicKey, which is required before performing any transaction on tezos blockchain.
Unlock Fundraiser Identity
This function will generate a new set of keys using mnemonic, email & passphrase, which can be used for interacting with tezos blockchain.
Restore Identity From Derivation Path
This function will recovers a set of keys using mnemonic & derivation path, which can be used for interacting with tezos blockchain.
Get Keys From Secret Key
This function will recovers a set of keys using secret key, which can be used for interacting with tezos blockchain.
Delegate An Account
This function delegate the account to the baker account address, This is a means for non-"baker" (non-validator) accounts to participate in the on-chain governance process and receive staking rewards.
Transfer Balance
This function used for transfer of value between two accounts, In this example we have the account: tz1.....hxy
and some random testnet address to test with: tz1.....Lnc
. Note all amounts are in µtz, as in micro-tez, hence 0.5tz is represented as 500000
. The fee of 1500
was chosen arbitrarily, but some operations have minimum fee requirements.
Last updated