Create new account
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:
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"
}