<p>There is no REST endpoint to create an account. An account is implicitly created after receiving at least 20 lumens. </p>

<p>To create an account: </p>

<ol>
<li>Generate a private/public keypair. You can use the <a href="https://www.stellar.org/laboratory/#account-creator?network=test" rel="nofollow noreferrer">Stellar Laboratory Account Creator</a> for that. </li>
<li>Get at least 20 lumens, either from an exchange or through another account, sent to the public key you just created. </li>
</ol>

<p>That's it.</p>

<p>Official guide : <a href="https://www.stellar.org/developers/guides/get-started/create-account.html" rel="nofollow noreferrer">https://www.stellar.org/developers/guides/get-started/create-account.html</a></p>

CC BY-SA 3.0
2017-10-29T00:10:41.733Z
Hello there Mr. Weller, so, is there a way to generate the private/public keypair without having to resort to using the SDKs?
jlstr
CC BY-SA 3.0
2017-10-29T02:59:43.583Z
@jlstr Yes, you will need to use a crypto library that implements ed25519. You can see how the Stellar SDKs do that for reference. For example, [Here's the Java keypair implementation](https://github.com/stellar/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/KeyPair.java).
Tomer Weller
CC BY-SA 3.0
2017-09-28T20:42:57.770Z
2017-09-28T20:42:57.770Z
Tomer Weller
<p>Just as the documentation clearly mentions,</p>

<blockquote>
  <p>To create a test account, send Friendbot the public key you created. It’ll create and fund a new account using that public key as the account ID.</p>
</blockquote>

<ul>
<li>Create your own public key use ED25519 public-key signature system</li>
<li>Perform a GET to the request friendlybot <code>https://friendbot.stellar.org/?addr=</code></li>
</ul>

CC BY-SA 4.0
2019-06-20T15:22:57.587Z
I think he wants to get a real account, not a test one, and he's asking how to create it without going through an exchange
Delio
CC BY-SA 4.0
2018-12-04T16:55:49.957Z
2018-12-04T16:55:49.957Z
psgganesh
<p>In the <a href="https://www.stellar.org/developers/horizon/reference/endpoints/operations-for-account.html" rel="nofollow noreferrer">REST API documentation</a>, I didn't see an option to create an account. Obviously then, the <a href="https://www.stellar.org/developers/guides/get-started/create-account.html" rel="nofollow noreferrer">code snippet here</a> to create an account has to be front-ended by some other API so that a request to create an account can be catered to. I am not sure why this is so. Is there a <code>HTTP POST</code> REST API to create an account?</p>

<p>Also, normally, to build a REST interface, one starts with identifying all 'resources' whose state changes over time and can be changed in a state-less operation. Then, for every such resource, the CRUD operations are implemented. For example, in Stellar, the resources could be account, anchor, trustlines, transactions, etc.</p>

<api><stellar>
REST API to create Stellar account?
cogitoergosum
# REST API to create Stellar account?

(Asked by: username_0 on 2017-02-12)

In the [REST API documentation](https://www.stellar.org/developers/horizon/reference/endpoints/operations-for-account.html), I didn't see an option to create an account. Obviously then, the [code snippet here](https://www.stellar.org/developers/guides/get-started/create-account.html) to create an account has to be front-ended by some other API so that a request to create an account can be catered to. I am not sure why this is so. Is there a `HTTP POST` REST API to create an account?

Also, normally, to build a REST interface, one starts with identifying all 'resources' whose state changes over time and can be changed in a state-less operation. Then, for every such resource, the CRUD operations are implemented. For example, in Stellar, the resources could be account, anchor, trustlines, transactions, etc.

**Tags:** api, stellar


---

## 2 answers

### Answer by username_1 on 2017-09-28. Score: 2

There is no REST endpoint to create an account. An account is implicitly created after receiving at least 20 lumens.

To create an account:

1. Generate a private/public keypair. You can use the [Stellar Laboratory Account Creator](https://www.stellar.org/laboratory/#account-creator?network=test) for that.
2. Get at least 20 lumens, either from an exchange or through another account, sent to the public key you just created.

That's it.

Official guide : <https://www.stellar.org/developers/guides/get-started/create-account.html>

> **Comments:**
> **username_2**: Hello there Mr. Weller, so, is there a way to generate the private/public keypair without having to resort to using the SDKs?  
> **username_1**: @username_2 Yes, you will need to use a crypto library that implements ed25519. You can see how the Stellar SDKs do that for reference. For example, [Here's the Java keypair implementation](https://github.com/stellar/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/KeyPair.java).  

---

### Answer by username_3 on 2018-12-04. Score: 0

Just as the documentation clearly mentions,

> To create a test account, send Friendbot the public key you created. It’ll create and fund a new account using that public key as the account ID.

* Create your own public key use ED25519 public-key signature system
* Perform a GET to the request friendlybot `https://friendbot.stellar.org/?addr=`

> **Comments:**
> **username_4**: I think he wants to get a real account, not a test one, and he's asking how to create it without going through an exchange  

---

