帖子
分享您的知识。
Caplec104
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
分享
评论
答案
1Mar 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答案

奖励活动五月
- MiniBob... SUI+31
1
- 0xduckmove... SUI+27
2
- HaGiang... SUI+26
3
- ... SUIharry phan+21
- ... SUIMarlKey+20
- ... SUI
- ... SUIVens.sui+15
- ... SUICarlkawIy+12
- ... SUI
- ... SUIkryptoschain+10