Query table from a SUI object

I want to query all the elements on the Table data type in the move Sui object with the TS SDK. For example:

module experiment::test {
    struct TableA has key{
        id: UID,
        list: Table<String, bool>
    }

After creating an object of type TableA, I add some elements on the list with Table type. I now want to get all the elements from the table with the SK from the Object. How can I achieve this?

1 Like

@tahlil This question has already been answered on: Read a Move Table object by using Typescript SDK

Please use getDynamicFields method for this usecase