Create new account

POST /account_holders/{accountHolderId}/accounts

Accounts belong to account holders. They can have many accounts each for a different asset.

To create a new keypair, fund the account and create a trustline you may use Stellar Laboratory site:

https://laboratory.stellar.org

Path parameters

  • accountHolderId string(uuid) Required

Body

  • asset_id string(uuid) Required
  • address string

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • id string(uuid)
    • asset_id string(uuid)
    • account_holder_id string(uuid)
    • address string
  • 401

    Unauthorized

  • 422

    Failed validation

POST /account_holders/{accountHolderId}/accounts
curl \
 -X POST https://assets.demo.bitbond.net/api/v1/account_holders/{accountHolderId}/accounts \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"asset_id":"string","address":"string"}'
Request example
{
  "asset_id": "string",
  "address": "string"
}
Request examples
{
  "asset_id": "string",
  "address": "string"
}
Response examples (200)
{
  "id": "string",
  "asset_id": "string",
  "account_holder_id": "string",
  "address": "string"
}
Response examples (200)
{
  "id": "string",
  "asset_id": "string",
  "account_holder_id": "string",
  "address": "string"
}