2

we can create new account using cleos .

cleos system newaccount <myacount> <newaccount> <new EOS Public key> <new EOS Public key> --stake-net "0.1 EOS"  --stake-cpu "0.1 EOS" --buy-ram-kbytes 4

I want to create new account using my smart contract. Is it possible?

3

Yes, you can refer smart_account_creator

Relevant bit:

// create account
INLINE_ACTION_SENDER(call::eosio, newaccount)
(N(eosio), {{_self, N(active)}},
 {_self, account_to_create, owner_auth, active_auth});
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.