Mintacoin
Search
K
Links
🪙

Assets

Mintacoin will help you in the creation and management of your assets
Definition: Is the representation of an asset within a blockchain network, which could contain a commercial and economic value; This asset can be exchanged by any other, and it can represent anything like:
📍 Assets examples
CUP - Coffee Cup
MTK - Mintacoin Token
USDC - Dollar

Create asset

post
https://sandbox.api.mintacoin.co/v1-alpha
/assets
Creates an asset on the given blockchain
Parameters Example
{
"blockchain": "stellar",
"address": "YYVLNUJFEW54QZIHWZTIBLAD52M5TSXOJAZP7FYJXC7TM7MQQDLQ",
"signature": "PSUQJNRDUZL7KLGB4O5FMN6M7XH3LTOWWU3IPGVKTWU7IBNHAQNQ",
"asset_code": "MTK",
"supply": 123.542
}
CURL Request
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"blockchain": "stellar", "address": "YYVLNUJFEW54QZIHWZTIBLAD52M5TSXOJAZP7FYJXC7TM7MQQDLQ", "signature": "PSUQJNRDUZL7KLGB4O5FMN6M7XH3LTOWWU3IPGVKTWU7IBNHAQNQ", "asset_code": "MTK", "supply": 123.542}' \
"https://sandbox.api.mintacoin.co/assets"
Blockchains supported: :stellar

Get asset

get
https://sandbox.api.mintacoin.co/v1-alpha
/assets/:id
Retrieve the asset information by its asset id
CURL Request
curl -X GET \
-H 'Content-Type: application/json' \
"https://sandbox.api.mintacoin.co/assets/317e8c9c-48ad-4513-8936-32646edbed9b"

Get asset issuer

get
https://sandbox.api.mintacoin.co/v1-alpha
/assets/:id/issuer
Retrieve the address from the asset
CURL Request
curl -X GET \
-H 'Content-Type: application/json' \
"https://sandbox.api.mintacoin.co/assets/317e8c9c-48ad-4513-8936-32646edbed9b/issuer"

Get asset holders

get
https://sandbox.api.mintacoin.co/v1-alpha
/assets/:id/accounts
Retrieve the addresses associated with an asset
CURL Request
curl -X GET \
-H 'Content-Type: application/json' \
"https://sandbox.api.mintacoin.co/assets/317e8c9c-48ad-4513-8936-32646edbed9b/accounts"