Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.
This repository was archived by the owner on Sep 21, 2025. It is now read-only.

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

Description

@shaojunda

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 的返回值用于调用以下两个方法

Activity

  1. Flouse commented on May 27, 2024

    @Flouse
    Contributor
    		* 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions