5. Assets

Working with counterparties you have the following features:

Create asset

Get assets list

Delete asset

Create asset

Create asset

post

Create dcm asset

Path parameters
counterparty_guidstringRequired

Counterparty GUID

Body
alpha_codestringOptional

Real currency alpha code. For example: USD

asset_codestringOptional

Asset code. For example: eUAH

asset_issuerstringOptional

Asset issuer's public key

statusstringOptional
Responses
200
OK
application/json
post
POST /api/v1/counterparty/{counterparty_guid}/asset HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Content-Type: application/json
Accept: */*
Content-Length: 79

{
  "alpha_code": "text",
  "asset_code": "text",
  "asset_issuer": "text",
  "status": "text"
}
{
  "alpha_code": "text",
  "description": "text",
  "minor_unit": 1,
  "name": "text"
}

Get assets list

Get assets list

get

Get dcm assets list with filter

Path parameters
counterparty_guidstringRequired

Counterparty GUID

Query parameters
asset_codestringOptional

sorting order

offsetintegerOptional

offset

issuerstringOptional

sorting order

limitintegerOptional

offset

alpha_codestringOptional

sorting order

Responses
200
OK
application/json
get
GET /api/v1/counterparty/{counterparty_guid}/assets HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Accept: */*
[
  {
    "stellar_assets": [
      {
        "alpha_code": "text",
        "asset_code": "text",
        "asset_issuer": "text",
        "status": "text"
      }
    ],
    "total": 1
  }
]

Delete asset

Note: to delete asset the asset should be created under correct counterparty.

Delete asset

delete

Delete dcm asset

Path parameters
counterparty_guidstringRequired

Counterparty GUID

Body
codestringOptional
issuerstringOptional
Responses
200
OK
application/json
Responseobject
delete
DELETE /api/v1/counterparty/{counterparty_guid}/assets HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "code": "text",
  "issuer": "text"
}
{}

Issue assets

Create asset

post

Create dcm asset

Path parameters
counterparty_guidstringRequired

Counterparty GUID

Body
alpha_codestringOptional
asset_codestringOptional
statusstringOptional
Responses
200
OK
application/json
post
POST /api/v1/counterparty/{counterparty_guid}/assets HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "alpha_code": "text",
  "asset_code": "text",
  "status": "text"
}
{
  "distributor_account_guid": "text",
  "issuer_account_guid": "text"
}

Burn assets

Burn asset

post

Burn asset

Path parameters
counterparty_guidstringRequired

Counterparty GUID

Body
amountnumberOptional
asset_codestringOptional
asset_issuerstringOptional
Responses
200
OK
application/json
Responseobject
post
POST /api/v1/counterparty/{counterparty_guid}/assets/burn HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Content-Type: application/json
Accept: */*
Content-Length: 54

{
  "amount": 1,
  "asset_code": "text",
  "asset_issuer": "text"
}
{}

Last updated