Move.

帖子

分享您的知识。

Caplec.
Mar 21, 2025
专家问答

Fetching shared objects by type using TypeScript SDK?

I was trying to fetch all shared objects of a specific type using the TypeScript SDK, but I'm not sure how to do this. Is there an existing method to achieve this, or do I need to look into other options?

  • Move CLI
1
1
分享
评论
.

答案

1
BlueEyedCrypto.
Mar 21 2025, 17:49

目前没有一种直接的方法可以从TypeScript SDK中获取所有特定类型的共享对象. 但是,你可以使用 GraphQL 来实现这一点. 尝试使用像这个例子一样的过滤器:https://github.com/MystenLabs/sui/blob/main/crates/sui-graphql-rpc/examples/object_connection/filter_on_type.graphql.

0
评论
.

你知道答案吗?

请登录并分享。

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148帖子231答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动五月
我们使用 cookie 确保您在我们的网站上获得最佳体验。
更多信息