Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app 实现 L1 资产展示以及转让所需接口 #150

Open
1 of 2 tasks
shaojunda opened this issue May 23, 2024 · 1 comment
Open
1 of 2 tasks

app 实现 L1 资产展示以及转让所需接口 #150

shaojunda opened this issue May 23, 2024 · 1 comment

Comments

@shaojunda
Copy link

shaojunda commented May 23, 2024

joyid 是否要将 L1 相关操作都改为通过 asset API 来进行这个需要讨论。这里先假设 joyid 使用 asset API 来完成相关操作,那么 joyid 需要两个接口:

input: 
	* btc_address
	* 分页相关参数(可选)

output:
	[]xudts
		* name
		* decimal
		* symbol
		* available_amount
		* type_script (序列化后的 hex string)
  • 2. 根据操作金额获取可用的 rgbpp lock args。
input:
	* btc_address
	* type_script_hash/type_script
	* transfer_amount

output:
	[]rgbpp_args (string 数组)

接口 2 的返回值用于调用以下两个方法

@Flouse
Copy link
Contributor

Flouse commented May 27, 2024

		* type_script (序列化后的 hex string)

update

The return type of /rgbpp/v1/address/{btc_address}/balance is XUDTBalance
https://github.com/ckb-cell/btc-assets-api/blob/b989f61d605a91aa385894df2d68a40c80dfbfaa/src/routes/rgbpp/types.ts#L86-L95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants