Token
Token(MRC010) Create, update, mint, burn
Token ID
GET /token/{token} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"owner": "text",
"symbol": "text",
"createdate": 1,
"totalsupply": "text",
"reservedamount": "text",
"remainamount": "text",
"token": 1,
"name": "text",
"category": "text",
"status": "text",
"decimal": 1,
"tier": [
{
"startdate": 1,
"enddate": 1,
"supply": "text",
"rate": 1,
"name": "text",
"investormin": "text",
"remainamount": "text"
}
],
"url": "text",
"circulation_supply": "text"
}
Token Creator
Token Symbol
Total amount
- Token image
- Metacoin Network does not change / modify the attached IMAGE
- If the attached image contains political, religious, or racial discrimination, or if it clearly violates international law or the laws of Hong Kong to which INBLOCK belongs, the coin may not be displayed on the Metacoin network
data:image/jpeg;base64,/9j/4AAQSkZJRgABAAEAlgCWAAD//gAfTEVBR ...
Reserve token amount for owner
Remain amount - ignore for token create.
Token name
Token Category
Token status
Token Creator URL
Temporary key for signing - using only transfer, not recording
- ECDSA sign for data.
- ex) ecdsa_sign(privatekey of owner address, owner +'|'+ symbol +'|'+ token +'|'+name+'|'+url +'|'+Temporarykey)
POST /token HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
text
Temporary key for Sign(return value of GET /getkey/token/owner
)
- ECDSA sign for concat token.owner, token.name, tkey
- ex) ecdsa_sign(token owner's privatekey, token.owner + '|' + token.name + '|' + tkey)
POST /token/{tkey} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
No content
Decrements tokens by quantity
The amount burned will be deducted from the token owner's wallet.
Temporary key for Sign(return value of GET /getkey/token/{tokwn owner})
Token ID
Token burning amount
- ECDSA sign for concat Address of Token owner, token, tkey
- ex) ecdsa_sign(token owner's privatekey, Token ID + '|' + amount + '|' + tkey)
PUT /token/burn/{tkey} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
No content
Increments tokens by quantity
The increased amount is added to the token owner's wallet.
Temporary key for Sign(return value of GET /getkey/token/{tokwn owner})
Token ID
Token increased amount
- ECDSA sign for concat Address of Token owner, token, tkey
- ex) ecdsa_sign(token owner's privatekey, Token ID + '|' + amount + '|' + tkey)
PUT /token/increase/{tkey} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
No content
Temporary key for Sign(return value of GET /getkey/token/{tokwn owner})
Token Creator URL
Token Info
Token Image
- ECDSA sign for concat Address of Token owner, token, tkey
- ex) ecdsa_sign(token owner's privatekey, Token ID + '|' + url + '|' + info + '|' + image + '|' + tkey)
PUT /token/update/{tkey} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
No content
MRC010 DEX ID
GET /token/dex/{mrc010dexid} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"dexid": "text",
"mrc010": "text",
"seller": "text",
"buyer": "text",
"amount": "text",
"remain_amount": "text",
"min_trade_unit": "text",
"platform_name": "Mefi",
"platform_url": "https://mefi.io",
"platform_commission": 5.75,
"platform_address": "text",
"regdate": 1,
"sell_date": 1,
"cancel_date": 1,
"sell_price": "text",
"selll_token": "text",
"buy_price": "text",
"buy_token": "text",
"buy_price_total": "text"
}
- If other users purchase tokens, they will receive the specified amount of sales.
- If 'platform_commission' is 10, the seller receives only 90% of the commission excluding the 10% commission.
- If the value of
platform_commission
is 0, no commission is paid. - You can sell Metacoin or MRC010 token as Metacoin or MRC010 token.
- Tokens or coins being sold are traded in a decentralized manner.
- This is the true meaning of DEX.
- You can designate a platform that takes a certain percentage of the transaction price when trading.
- The transaction amount is the minimum amount per transaction unit.
- ID of the token you want to sell
- The seller's metacoin address
- Quantity of tokens to be sold
- Minimum sales quantity
- When purchasing this dex, the purchase quantity must be a multiple of this value.
- If not specified, it is treated as "1".
ID of the token to be paid for when purchasing
Amount to be paid for purchase per min_trade_unit
The name of the platform that supports this DEX transaction
Mefi
The URL of the platform that supports this DEX transaction
https://mefi.io
- Percentage of fees taken from the platform when a transaction is concluded
- If the value of
platform_address
is not specified, no fee is paid.
5.75
- Metacoin address to receive commission if the value of platform_commission is greater than 0
Temporary key for Sign(return value of GET /getkey/transfer)
- ECDSA sign for concat seller address, amount, mrc010id, price, token, platform_name, platform_url, platform_address, platform_commission, tkey
- ex) ecdsa_sign(privatekey of seller address, address +'|'+ amount +'|'+ mrc010id +'|'+ price +'|'+ token +'|'+ platform_name +'|'+ platform_url +'|'+ platform_address +'|'+ platform_commission +'|'+ tkey)
POST /token/sell/{mrc010id} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"mrc010dexid": "text",
"txid": "text"
}
MRC010 DEX ID
buy amount
Temporary key for Sign(return value of GET /getkey/transfer)
- ECDSA sign for concat seller, itemdata, tkey
- ex) ecdsa_sign(privatekey of mrc010dexid creator address, mrc010dexid +'|'+ tkey)
POST /token/buy/{mrc010dexid} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"txid": "text"
}
MRC010 DEX ID
Temporary key for Sign(return value of GET /getkey/transfer)
- ECDSA sign for concat seller, itemdata, tkey
- ex) ecdsa_sign(privatekey of mrc010dexid creator address, mrc010dexid +'|'+ tkey)
POST /token/unsell/{mrc010dexid} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"txid": "text"
}
- Register DEX to purchase token ID
mrc010
by paying the price permin_trade_unit
for token IDtoken
. - If 'platform_commission' is 10, you must pay an additional 10% of the purchase amount, and 10% of the transaction amount is sent to the platform_address when making a transaction.
- If the 'platform_commission' value is 0, no commission is paid.
- You can sell Metacoin or MRC010 tokens as Metacoin or MRC010 tokens.
- The tokens or coins sold are traded in a decentralized way.
- ID of the token you want to buy
- The seller's metacoin address
- Quantity of tokens to be buy
- Minimum purchase quantity
- When accepting this purchase requisition, the quantity must be a multiple of this value.
- If not specified, it is treated as "1".
ID of the token to be paid to the seller
Amount to be paid for purchase per min_trade_unit
The name of the platform that supports this DEX transaction
Mefi
The URL of the platform that supports this DEX transaction
https://mefi.io
- Percentage of fees taken from the platform when a transaction is concluded
- If the value of
platform_address
is not specified, no fee is paid.
5.75
- Metacoin address to receive commission if the value of platform_commission is greater than 0
Temporary key for Sign(return value of GET /getkey/transfer)
- ECDSA sign for concat seller address, amount, mrc010id, price, token, platform_name, platform_url, platform_address, platform_commission, tkey
- ex) ecdsa_sign(privatekey of seller address, address +'|'+ amount +'|'+ mrc010id +'|'+ price +'|'+ token +'|'+ platform_name +'|'+ platform_url +'|'+ platform_address +'|'+ platform_commission +'|'+ tkey)
POST /token/reqsell/{mrc010id} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"mrc010dexid": "text",
"txid": "text"
}
MRC010 DEX ID
buy amount
Temporary key for Sign(return value of GET /getkey/transfer)
- ECDSA sign for concat seller, itemdata, tkey
- ex) ecdsa_sign(privatekey of mrc010dexid creator address, mrc010dexid +'|'+ tkey)
POST /token/acceptreqsell/{mrc010dexid} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"txid": "text"
}
MRC010 DEX ID
Temporary key for Sign(return value of GET /getkey/transfer)
- ECDSA sign for concat seller, itemdata, tkey
- ex) ecdsa_sign(privatekey of mrc010dexid creator address, mrc010dexid +'|'+ tkey)
POST /token/unreqsell/{mrc010dexid} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
"txid": "text"
}
Last updated