I have deployed a private Stardust network and I want to be able to store data from IoT machines on it, which is the most suitable transaction type to do this?
I am currently using Tagged Payload transaction type but my questions is how can I access to it from a different client - without knowing the Block ID of the transaction the data is encapsulated in?
And even more, how can I query within Tagged Payloads for specific data Tags or content? Having a look at the INX Indexer: https://editor.swagger.io/?url=https://raw.githubusercontent.com/iotaledger/tips/main/tips/TIP-0026/indexer-rest-api.yaml, this solution only allows to sort within different transactions, but it is not implemeted for Tagged Payloads.
I then tried to look in the IOTA Client library: https://wiki.iota.org/shimmer/iota.rs/libraries/nodejs/references/classes/Client/#getblock, but again there are only implemented queries for Outputs, NFTs and Native Tokens value transactions.
I know there is an INX Collector project that works as an INX plugin for Hornet nodes that allows to store all blocks with a specific Tag, working as a selective permanode: https://github.com/teleconsys/inx-collector However, this option implies to store all blocks locally which is not an optimal solution.
In this particular case, as working with a private Tangle there is no intention of implementing any type of prunning.