Getting object changes to latest transaction using Sui dapp kit

I am trying to get the latest transactions of the connected wallet using the dapp-kit library on my next js dapp:

const txs = await suiClient.queryTransactionBlocks({
          filter: {
            FromAddress: account?.address + ''
          },
          options: {
            showObjectChanges: true
          },
          limit: 50,
          order: 'descending'
        })

But even with the showObjectChanges set to true I am not getting the object changes getting response like this:


checkpoint
: 
"123359859"
digest
: 
"7GfRA38DTv8qYmMwA46EwFwG4rXoVXnkuHKtszjgAtLh"
errors
: 
['Failed to fetch object changes Client(UserInputErr…49c, version: Some(SequenceNumber(192866715)) }))']

Why can’t I get the object change, I used to get the changes with the same syntax. How can I fix this?

Are you sure that the correct address is being passed? I just copy
pasted your code and hard-coded my address in it and it worked.

1 Like