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
- If other users purchase tokens, they will receive the specified amount of sales.
- If
platform_commission
is 10, 10% of the transaction amount will be transferred to the MRC400 token holder designated in the MRC402 token, and only 90% of the fee excluding the 10% fee will be received by the MRC402 token holder. - If the value of
platform_commission
is 0, no commission is paid.
- 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: */*
{
"transaction_id": "text"
}
Last updated