Identifiers
You have the following possibilities:
view Identifier's history
Create identifiers
To create identifiers use this endpoint:
Issue asset
Counterparty GUID
amount of issued assets
asset code that will be created
address in stellar which will issue token
optional reserve balance
POST /api/v1/counterparty/{counterparty_guid}/emission/issue HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"amount": 1,
"asset_code": "text",
"asset_issuer": "text",
"reserve_balance": 1
}
{}
A condition must be met:
where:
X - requested amount to create
sum(A) - history of all created or deleted identifiers
Identifier's history
To view the identifier's history use this request:
Assets history
Counterparty GUID
Emission GUIDs
Direction
Balance GUID
Asset code
Asset issuer
Issuer payment GUID
Emission payment GUID
Issuer payment hash
Emission payment hash
Min requested amount
Max requested amount
Status
Created by
Updated by
Min created_at
Max created_at
Min updated_at
Max updated_at
Sorting order
Offset
Limit
GET /api/v1/counterparty/{counterparty_guid}/emission/history HTTP/1.1
Host: your_host
Accept: */*
{
"history": [
{
"balance": {
"asset_code": "text",
"counterparty_guid": "text",
"created_at": "text",
"emission_account_guid": "text",
"guid": "text",
"reserve_balance_amount": 1,
"updated_at": "text"
},
"created_at": "text",
"created_by": "text",
"direction": "text",
"emission_payment_guid": "text",
"emission_payment_hash": "text",
"guid": "text",
"issuer_payment_guid": "text",
"issuer_payment_hash": "text",
"requested_amount": 1,
"reserve_balance_amount": 1,
"status": "text",
"updated_at": "text",
"updated_by": "text"
}
],
"total": 1
}
Delete identifiers
To delete identifiers use this endpoint:
Burn asset
Counterparty GUID
amount of tokens that will be burnt
asset's code
address in stellar that is the issuer address
optional reserve balance
POST /api/v1/counterparty/{counterparty_guid}/emission/burn HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"amount": 1,
"asset_code": "text",
"asset_issuer": "text",
"reserve_balance": 1
}
{}
A condition must be met:
where:
Y - requested amount to delete
sum(A) - history of all created or deleted identifiers
Last updated