HOP Mainnet Bridger
Call-to-Action
https://app.hop.exchange/ID Type
EVM ADDRESS
Cred Type
SUBGRAPH
Last Update Time
01/21/2024, 20:45:58
Query
query bridgeTransfer($address: String!){
transferSentToL2S(
where: {
destinationChainId: 42161
timestamp_gte: 1655787600
timestamp_lte: 1656392340
recipient: $address
},
) {
amount
token
}
}
Expression
function(data) {
if (data != null && data.transferSentToL2S != null) {
const ts = data.transferSentToL2S
for (let i = 0; i < ts.length; i++) {
if (ts[i].token === 'ETH') {
return 1
}
}
}
return 0
}