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 }
