Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.59 KB

create_account.rst

File metadata and controls

43 lines (33 loc) · 1.59 KB

Create Account

Now, in order to create an account, you need to run a :pyCreateAccount <stellar_sdk.operation.CreateAccount> operation with your new account ID. Due to Stellar's minimum account balance, you'll need to transfer the minimum account balance from another account with the create account operation. As of this writing, minimum balance is 1 XLM (2 x 0.5 Base Reserve), and is subject to change.

Using The SDF Testnet

If you want to play in the Stellar test network, you can ask our Friendbot to create an account for you as shown below:

../../examples/create_account_friendbot.py

Using The Stellar Live Network

On the other hand, if you would like to create an account on the live network, you should buy some Stellar Lumens from an exchange. When you withdraw the Lumens into your new account, the exchange will automatically create the account for you. However, if you want to create an account from another account of your own, here's an example of how to do so:

../../examples/create_account.py

Note: To avoid risks, TESTNET is used in the example above. In order to use the Stellar Live Network you will have to change the network passphrase to Network.PUBLIC_NETWORK_PASSPHRASE and the server URL to point to https://horizon.stellar.org too.