2. Accounts management
Working with counterparties you have the following features:
Get account
Get the accounts that are visible for the user.
Get dcm account
Counterparty GUID
wallet account guid (uuid)
auth user token
GET /api/v1/counterparty/{counterparty_guid}/accounts/{account_guid} HTTP/1.1
Host: dev-dcm-api.armenotech.dev
X-Auth-Token: text
Accept: */*
{
"activated": true,
"assets": [
{
"activated": true,
"balance": 1,
"code": "text",
"minor_unit": 1,
"name": "text",
"platform": "text"
}
],
"assets_total": 1,
"blocked": true,
"guid": "text",
"name": "text",
"platform": "text",
"registered": true,
"type": "text"
}
Create account
Accounts can be created in 4 ways:
a counterparty is created together with 2 accounts: emission account and processing account.
an internal user can create an additional processing account for their counterparty (e.g., to separate asset flow between branches)
an internal user can create an account for a linked external user (each external user has their own Stellar account)
an external user can create an account for themselves
Create dcm account
Counterparty GUID
auth user token
POST /api/v1/counterparty/{counterparty_guid}/accounts HTTP/1.1
Host: dev-dcm-api.armenotech.dev
X-Auth-Token: text
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"account_kind": "issuer"
}
{
"wallet_guid": "text"
}
Get accounts list
Get the list of accounts that are visible for the user.
Get dcm accounts list
Counterparty GUID
wallet account guid (uuid)
wallet user guid (uuid)
limit (int)
offset (int)
list order (string)
GET /api/v1/counterparty/{counterparty_guid}/accounts HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Accept: */*
[
{
"created_at": "text",
"updated_at": "text",
"wallet_account_guid": "text",
"wallet_user_guid": "text"
}
]
Last updated