> For the complete documentation index, see [llms.txt](https://bitlong.gitbook.io/api-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bitlong.gitbook.io/api-doc/fairlaunch/liu-cheng-shuo-ming.md).

# 流程说明

`fair_launch_info_id` 指资产信息中的`ID`（短的数字id）

## 1.资产发行流程

### 1.1右上角历史记录

***FairLaunch wallet API:***[1.查询用户本人资产发行列表](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/kBtT3nSCT1oOJ80e5Gwb#id-1.-cha-xun-yong-hu-ben-ren-zi-chan-fa-hang-lie-biao-getuserownissuancehistoryinfos)`GetUserOwnIssuanceHistoryInfos`

### 1.2查询费率

***FairLaunch trade REST API:***[8.查询合适的费率](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-8.-cha-xun-he-kuo-de-fei-lv)<mark style="color:green;">`GET`</mark> `http://132.232.109.84:8090/v1/fee/query/rate`

显示给用户 `sat_per_b` 单位（聪/字节）

### 1.3点击发行按钮，再次查询费率，弹窗

***FairLaunch trade REST API:***[8.查询合适的费率](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-8.-cha-xun-he-kuo-de-fei-lv)<mark style="color:green;">`GET`</mark> `http://132.232.109.84:8090/v1/fee/query/rate`

其中 `sat_per_kw` 为之后*发行*请求所需参数

### 1.4查询手续费，显示在弹窗中

***FairLaunch wallet API:***[3.查询资产铸造费用](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/kBtT3nSCT1oOJ80e5Gwb#id-3.-cha-xun-zi-chan-zhu-zao-fei-yong-getminttransactionfee)`GetIssuanceTransactionFee`

费用单位（聪）

### 1.5用户点击确认

***FairLaunch trade REST API:***[9.进行公平发射资产发行](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-9.-jin-hang-gong-ping-fa-she-zi-chan-fa-hang) <mark style="color:orange;">`POST`</mark> `http://132.232.109.84:8090/v1/fair_launch/set`

## 2.可进行铸造的资产列表

***FairLaunch trade REST API:***[1.查询所有已发行且未全部铸造的公平发射数据](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-1.-cha-xun-suo-you-yi-fa-hang-qie-wei-quan-bu-zhu-zao-de-gong-ping-fa-she-shu-ju) <mark style="color:green;">`GET`</mark> `http://132.232.109.84:8090/v1/fair_launch/query/issued`

其中：已铸造百分比=`minted_number`/`mint_number`

点击该列表的资产ID，直接进入该资产的铸造界面，并填入资产ID

## 3.资产铸造流程

### 1.1右上角历史记录

***FairLaunch trade REST API:***[3.查询用户自己的公平发射资产铸造信息](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-3.-cha-xun-yong-hu-zi-ji-de-gong-ping-fa-she-zi-chan-zhu-zao-xin-xi) <mark style="color:green;">`GET`</mark> `http://132.232.109.84:8090/v1/fair_launch/query/own_mint`

### 1.2待铸造的资产详细信息

***FairLaunch trade REST API:***[13.通过资产ID(AssetID)查询公平发射资产发行信息](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-13.-tong-guo-zi-chan-idassetid-cha-xun-gong-ping-fa-she-zi-chan-fa-hang-xin-xi) <mark style="color:green;">`GET`</mark> `http://132.232.109.84:8090/v1/fair_launch/query/asset/:id`

### 1.3从宇宙同步资产

api.SyncUniverse(host，AssetID)

### 1.4根据铸造份数查询费率

***FairLaunch trade REST API:***[7.通过给定参数查询是否可以进行铸造行为](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-7.-tong-guo-gei-ding-can-shu-cha-xun-shi-fou-ke-yi-jin-hang-zhu-zao-hang-wei) <mark style="color:orange;">`POST`</mark> `http://132.232.109.84:8090/v1/fair_launch/query/mint`

显示查询到的费率`calculated_fee_rate_sat_per_kw`

### 1.5用户点击铸造，弹窗

***FairLaunch wallet API:***[3.查询资产铸造费用](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/kBtT3nSCT1oOJ80e5Gwb#id-3.-cha-xun-zi-chan-zhu-zao-fei-yong-getminttransactionfee) `GetMintTransactionFee`

显示所需费用，待用户确认

### 1.6生成资产地址

api.NewAddr(AssetID，数量)&#x20;

得到`encoded_addr`

### 1.7点击确定，发送铸造请求

***FairLaunch trade REST API:***[10.进行公平发射的资产铸造](https://bitlong.gitbook.io/api-doc/fairlaunch/pages/KrgEAUBxrEwBEn8lvAQL#id-10.-jin-hang-gong-ping-fa-she-de-zi-chan-zhu-zao) <mark style="color:orange;">`POST`</mark> `http://132.232.109.84:8090/v1/fair_launch/mint`
