Publication
Partagez vos connaissances.
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
Réponses
1Il n'existe actuellement aucun moyen direct d'obtenir tous les objets partagés d'un type spécifique à partir du SDK TypeScript. Cependant, vous pouvez utiliser GraphQL pour y parvenir. Essayez d'utiliser un filtre comme dans cet exemple : https://github.com/MystenLabs/sui/blob/main/crates/sui-graphql-rpc/examples/object_connection/filter_on_type.graphql.
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
Move is an executable bytecode language used to implement custom transactions and smart contracts.
Gagne ta part de 1000 Sui
Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.

- 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