Description The subcommands can be used to to create various items, on and off the blockchain.
Account — Retrieve an account from the blockchain.
Key — Retrieve accounts associated with a public key.
The subcommand creates a new account on the blockchain (assumes system contract does not restrict RAM usage).
(string) creator— The name of the account creating the new account (required).
(string) name— The name of the new account (required).
(string) OwnerKey— The owner public key or permission level for the new account (required).
(string) ActiveKey— The active public key or permission level for the new account.
--expiration TEXT — Set the time (in seconds) before a transaction expires, defaults to 30 s.
--force-unique — Force the transaction to be unique. This will consume extra bandwidth and remove any protections against accidently issuing the same transaction multiple times.
--skip-sign — Specify if unlocked wallet keys should be used to sign transaction.
--json — Print result as JSON.
--dont-broadcast — Do not broadcast transaction to the network (just print to
--return-packed — Used in conjunction with
--dont-broadcast to get the packed transaction.
--ref-block TEXT — Set the reference block num or block id used for TAPOS (Transaction as Proof-of-Stake).
--permission TEXT — An account and permission level to authorize, as in 'account@permission' (defaults to 'creater@active').
--max-cpu-usage-ms UINT — Set an upper limit on the milliseconds of CPU usage budget, for the execution of the transaction (defaults to 0 which means no limit).
--max-net-usage UINT — Set an upper limit on the net usage budget (in bytes) for the transaction (defaults to 0 which means no limit).
--max-ram-usage UINT — Set an upper limit on the ram usage budget (in bytes) for the transaction (defaults to 0 which means no limit).
--max-storage-usage — Set an upper limit on the storage usage budget, (in bytes) for the transaction (defaults to 0 which means no limit).
--delay-sec UINT — Set the
delay_sec seconds, defaults to 0 s.
--bandwidth-provider TEXT — Set an account which provide own bandwidth for transaction.
--dont-declare-names — Do not add
declarenames action for resolved account names.
$ cleos create account [OPTIONS] <creator> <name> <OwnerKey> [<ActiveKey>]
A set of keys is required to create an account. These keys can be generated by using
cleos create key.
$ cleos create account alice bob GLS5to...hBdcBw GLS7A3u...K3bAS
The subcommand creates a new keypair and prints the public and private keys.
No parameters required fot this subcommand.
-j — Generate a key using the R1 curve (iPhone), instead of the K1 curve (Bitcoin).
— Name of file to write private/public key output to. (Must be set, unless--to-console` is passed).
--to-console — Print private/public keys to console.
$ cleos create key [OPTIONS]
$ cleos create key -f privatedata
Private key: SxY7ghj...judaUPublic key: GLS5sUR...dSmc96