Move.

Publicación

Comparte tu conocimiento.

Caplec.
Mar 21, 2025
P&R expertos

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
Cuota
Comentarios
.

Respuestas

1
BlueEyedCrypto.
Mar 21 2025, 17:49

Actualmente, no hay una forma directa de obtener todos los objetos compartidos de un tipo específico del SDK de TypeScript. Sin embargo, puedes usar GraphQL para lograrlo. Intenta usar un filtro como el de este ejemplo: https://github.com/MystenLabs/sui/blob/main/crates/sui-graphql-rpc/examples/object_connection/filter_on_type.graphql.

0
Comentarios
.

Sabes la respuesta?

Inicie sesión y compártalo.

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

148Publicaciones231Respuestas
Sui.X.Peera.

Gana tu parte de 1000 Sui

Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.

Campaña de RecompensasMayo
Usamos cookies para asegurarnos de que obtenga la mejor experiencia en nuestro sitio web.
Más información