Skip to main content
Version: 1.0.2

CreateAccount

The CreateAccount API allows users to create a new account on the Stellar network. It enables the transfer of funds from a source account to a newly generated destination account.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Response Parameters
ParameterDescription

SourceAccount

Object

PublicKey

Mandatory

String

The public key of the source account from which the funds will be transferred.

Ex: "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW"

PrivateKey

Mandatory

String

The private key associated with the source account. This is required for authentication and should be kept secure.

Ex: ""

DestinationAccount

Object

PublicKey

Mandatory

String

The public key of the destination account where the funds will be transferred.

Ex: "GAHQYF2BNR5PGXPMWHOPXQA2Y3T2HVBBBF7ON7D2427T7FPZRMIRE6XD"

StartingBalance

Mandatory

Number

The initial balance to be assigned to the newly created destination account.

Ex: 9999

Body


{
"SourceAccount": {
"PublicKey": "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW",
"PrivateKey": ""
},
"DestinationAccount": {
"PublicKey": "GAHQYF2BNR5PGXPMWHOPXQA2Y3T2HVBBBF7ON7D2427T7FPZRMIRE6XD"
},
"StartingBalance": 9999
}

Response: 200

Response Parameters
ParameterDescription

hash

String

A unique identifier representing the transaction hash of the account creation.

Ex: "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724"


{
"hash": "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724"
}