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?

1 Answer 1


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});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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