Reinhard subscription websocket
Streams the latest DEX trades on Ethereum as they happen, where sell currency smart contract is 0x7ae0…BB93 and DEX smart contract is 0x83b3…db15: from, transaction hash, buy amount, buy currency symbol, sell amount, sell currency name and sell currency symbol.
What it returns
- from
- transaction hash
- buy amount
- buy currency symbol
- sell amount
- sell currency name
- sell currency symbol
Filters
- sell currency smart contract is 0x7ae0…BB93
- DEX smart contract is 0x83b3…db15
The subscription
subscription SubGetTxForPairAddressV2($netzwerk: evm_network, $tokenContractAddress: String, $pairContractAddress: String) {
EVM(network: $netzwerk, trigger_on: head) {
buyside: DEXTrades(
orderBy: {descending: Block_Time}
where: {Trade: {Sell: {Currency: {SmartContract: {is: $tokenContractAddress}}}, Dex: {SmartContract: {is: $pairContractAddress}, Pair: {SmartContract: {}}}}}
) {
Transaction {
From
Hash
}
Trade {
Buy {
Amount
Currency {
Symbol
}
}
Sell {
Amount
Currency {
Name
Symbol
}
}
}
}
}
}
Variables
{
"tokenContractAddress": "0x7ae075546e8042dC263FA0eb6519ce0a04EABB93",
"pairContractAddress": "0x83b33b4db2776f119b2ddd902419254775c8db15",
"netzwerk": "eth"
}
Similar queries
- subscription EVM · Ethereum · DEXTrades
- Stablecoin trades for etheruem · Ethereum · DEXTrades
- Realtime Uniswap V3 Trades · Ethereum · DEXTrades
- get swaps by pair address -eth -stream · Ethereum · DEXTrades
- Realtime Uniswap v1 Uniswap v2 Uniswap V3 Trades · Ethereum · DEXTrades