Post
Share your knowledge.
How to monitor Sui transactions in a wallet app?
I'm adding Sui support to an existing wallet app and need to track blockchain transactions for wallet accounts to detect deposits and update balances. Is there a straightforward method to achieve this without implementing a complex indexer? Is there an event I can monitor using the Sui SDK?
- Sui
- Architecture
Answers
2You can refetch the query according to your specific requirements. For instance, using useSuiClientQuery
, you can query transaction blocks while filtering based on certain conditions like account addresses or specific module functions:
const { data, isPending, error, refetch, isFetched } = useSuiClientQuery(
"queryTransactionBlocks",
{
order: "descending",
options: QUERY_OPTIONS,
filter: QUERY_FILTER({
FromAddress: account?.address || "",
MoveFunction: {
function: "your_package_function",
module: "your_module",
package: process.env.NEXT_PUBLIC_PACKAGE_ID!,
},
}),
},
);
You can query any SUI package by events or by transactions using methods like getEvents
or getTransactionBlocks
with the SUI SDK. This approach allows you to filter events by parameters such as FromAddress
, SenderAddress
, or MoveFunction
.
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.

- 24p30p... SUI+78
1
- MoonBags... SUI+71
2
- Meaning.Sui... SUI+43
3
- ... SUIJojo+34
- ... SUIOpiiii+31
- ... SUI0xduckmove+20
- ... SUIHaGiang+20
- ... SUIfomo on Sui+16
- ... SUI
- ... SUI
- Why does BCS require exact field order for deserialization when Move structs have named fields?53
- Multiple Source Verification Errors" in Sui Move Module Publications - Automated Error Resolution43
- Sui Transaction Failing: Objects Reserved for Another Transaction25
- How do ability constraints interact with dynamic fields in heterogeneous collections?05