We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在获取coinList的接口是rgbpp.infoList,定义如下:
infoList: _trpc_server.TRPCQueryProcedure<{ input: { pageSize?: number | undefined; pageIndex?: number | undefined; }; output: { data: { symbol: string | null; id: string; name: string | null; decimals: number | null; icon: string | null; tags: string[]; }[]; pagination: { hasNext: boolean; total?: number | undefined; }; }; }>;
考虑到以下原因, 我们提出将 rgbpp.infoList 名改成 rgbpp.coinList,内含info、quote:
修改后的接口定义大致如下:
coinList: _trpc_server.TRPCQueryProcedure<{ input: { pageSize?: number | undefined; pageIndex?: number | undefined; }; output: { data: { info: { symbol: string | null; id: string; name: string | null; decimals: number | null; icon: string | null; tags: string[]; }, quote: { totalSupply: string | null; holderCount: { network: "ckb" | "btc" | "doge" | "unknown"; count: number; }[]; price: string | null; marketCap: string | null; volume24h: string | null; priceChange24h: number | null; circulatingSupply: string | null; fdv: string | null; txCount24h: number; } }[]; pagination: { hasNext: boolean; total?: number | undefined; }; }; }>;
这里output.data里的info和quote分别是现在infoList返回和quote的返回值,是否需要加这一层由数据平台定,只要里面的元素是两者的合集就行。
info
quote
The text was updated successfully, but these errors were encountered:
同理,如果查询某个地址下的资产列表(分为coin,dob),接口名也建议与上面一致,也即:address.coinList,address.dobList,尽量避免用infoList、assetList这种范围较宽泛的。
Sorry, something went wrong.
对应需求文档描述:见 子页面 2: RGB++ Asset List(FT)章节。
子页面 2: RGB++ Asset List(FT)
这个接口的pagination 还是没有total的数字吗
PainterPuppets
No branches or pull requests
现在获取coinList的接口是rgbpp.infoList,定义如下:
考虑到以下原因, 我们提出将 rgbpp.infoList 名改成 rgbpp.coinList,内含info、quote:
修改后的接口定义大致如下:
这里output.data里的
info
和quote
分别是现在infoList返回和quote的返回值,是否需要加这一层由数据平台定,只要里面的元素是两者的合集就行。The text was updated successfully, but these errors were encountered: