Created
September 8, 2025 10:50
-
-
Save topshef/a1d5a77b4d769fdf20b9c5114f679381 to your computer and use it in GitHub Desktop.
select all tx where operator id =xxx and contains any xfer (hbar or ft) where withdrawal is from account yyyy since date zzz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https://discord.com/channels/1011406343053254707/1283157792626311281/1334129547582505000 | |
| query TransfersQuery($verifierId: bigint, $subjectId: bigint, $fromConsensusTime: bigint) { | |
| hbarTransfers: crypto_transfer( | |
| where: { | |
| entity_id: { _eq: $subjectId } | |
| amount: { _lt: 0 } | |
| transaction: { payer_account_id: { _eq: $verifierId }, consensus_timestamp: { _gte: $fromConsensusTime } } | |
| } | |
| order_by: { transaction: { consensus_timestamp: desc } } | |
| ) { | |
| entity_id | |
| amount | |
| consensus_timestamp | |
| transaction { | |
| transaction_hash | |
| payer_account_id | |
| } | |
| } | |
| tokenTransfers: token_transfer( | |
| where: { | |
| account_id: { _eq: $subjectId } | |
| amount: { _lt: 0 } | |
| transaction: { payer_account_id: { _eq: $verifierId }, consensus_timestamp: { _gte: $fromConsensusTime } } | |
| } | |
| order_by: { transaction: { consensus_timestamp: desc } } | |
| ) { | |
| account_id | |
| amount | |
| token_id | |
| consensus_timestamp | |
| transaction { | |
| transaction_hash | |
| payer_account_id | |
| } | |
| } | |
| } |
Author
Author
try it at https://dashboard.hgraph.com/playground
Author
example data
{
"verifierId": 26027,
"subjectId": 24739,
"fromConsensusTime": 0
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
backlink https://discord.com/channels/1011406343053254707/1283157792626311281/1334129547582505000