# query

By [rich1977.eth](https://paragraph.com/@rich1977) · 2022-08-05

---

query info($address:String!){ USDCreceived: receiveds(where: { recipient: $address, block\_gt: 1533850, token\_in: \["0x8f552a71EFE5eeFc207Bf75485b356A0b3f01eC9"\], amount\_gt: 9000000 }) { id originAndNonce token recipient liquidityProvider amount block timestamp } WBTCreceived: receiveds(where: { recipient: $address, block\_gt: 1533850, token\_in: \["0x1DC78Acda13a8BC4408B207c9E48CDBc096D95e0"\], amount\_gt: 40000 }) { id originAndNonce token recipient liquidityProvider amount block timestamp } WETHreceived: receiveds(where: { recipient: $address, block\_gt: 1533850, token\_in: \["0x30D2a9F5FDf90ACe8c17952cbb4eE48a55D916A7"\], amount\_gt: 5000000000000000 }) { id originAndNonce token recipient liquidityProvider amount block timestamp } fulfilleds(where: {user: $address, timestamp\_gt: 1651986604}) { id caller isContract returnData router success transactionId user block timestamp } } Expression function(resp) { if (resp != null && (resp.fulfilleds != null && resp.fulfilleds.length > 0 || resp.USDCreceived != null && resp.USDCreceived.length > 0 || resp.WBTCreceived != null && resp.WBTCreceived.length > 0 || resp.WETHreceived != null && resp.WETHreceived.length > 0)) { return 1 } return 0 }

---

*Originally published on [rich1977.eth](https://paragraph.com/@rich1977/query)*
