MRC-20
協議格式
部署
PIN路徑:/ft/mrc20/deploy
/ft/mrc20/deploy協議格式:
{
"tick": "satoshi", // 2-24 字符
"amtPerMint": "1000", // 每次鑄造獲得的總代幣數量 [1, 1e12]
"mintCount": "100", // 最大允許鑄造次數 [1, 1e12]
"tokenName": "SatoshiTheLegend", // 選填,代幣全名,0-48 字符
"decimals": "8", // 選填,小數位數 0 至 12,默認為 8
"premineCount": "60", // 選填,部署時預先鑄造的次數,默認為 0,[0, mintCount]
"beginHeight": "851235", // 選填,鑄造事件開始的區塊高度
"endHeight": "851781", // 選填,鑄造事件結束的區塊高度
"metadata": "Arbitrary Data", // 選填,可以包含額外資料如代幣描述、圖示等,無格式要求
"payCheck": { // 選填,檢查付款以驗證鑄造資格
"payTo": "address", // 檢查輸出是否匹配指定地址
"payAmount": "" // 以 satoshi 為單位,檢查是否支付了指定數量的 satoshi
},
"pinCheck": { // 選填,檢查 PIN 以驗證鑄造資格
"creator": "", // 創建 PIN 的人,使用完整的 MetaID
"path": "/", // PIN 的路徑
"count": "1", // 0~n,所需的 PIN 數量
"lvl": "6" // PIN 的最低等級
}
}要點說明:
premineCount 說明:
premineCount 說明:payCheck 說明:
payCheck 說明:pinCheck 說明
pinCheck 說明pinCheck示例
鑄造
PIN 路徑:/ft/mrc20/mint
/ft/mrc20/mint協議格式:
要點說明:
Mint 交易構建例子

Transfer 轉帳
原生轉帳(直接轉帳)
原生轉帳交易構造

數據轉帳 (MRC20 Allocation)
數據轉帳格式
數據轉帳字段說明
數據轉帳示例



Teleport 躍遷(跨鏈)
躍遷示例

Teleport 同 Transfer 可以同層

Last updated