Skip to navigation

Create an XLM create account request

This endpoint creates a sponsored create-account request that funds and creates a new XLM account on-chain. The fee-payer sponsors the new account’s base reserves and pays the transaction fee. Required role: RequestCreator. This API can be made idempotent by generating an ID for the Request beforehand and passing it as the externalRequestId attribute

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
sourceAddressIdstringRequiredformat: "uint64"

ID of the address to create on the Stellar network. It must not already exist on-chain.

feePayerIdstringRequiredformat: "uint64"

ID of the fee-payer that sponsors the new account: it funds the account's minimum balance (base reserves) and pays the transaction fee.

commentstringOptional
externalRequestIdstringOptional
Identifier for the request in the user's system. This must be unique. Attempting to create a request with an existing externalRequestId will do nothing and return the originally created request

Response

A successful response.
resultobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error