I have been practicing with the test-net for a while and creating test accounts with the friendbot. Now I want to create a real account throught the API with the lumens that I already have. Is there any way to do that?
Thanks for your help.
To create a new account you issue a transaction with the
CreateAccount operation. It's very similar to a
Payment operation, but has the side-effect of creating a new account. This is essentially what friendbot is doing.
You can test this approach on testnet via the laboratory.
After "Create Account", you need to initiate a regular transfer of fund/XLM from already funded account to the "new account". (There is no friendbot for real network !)