Websocket to listen latest USDT Pair created on Uniswap v2
Streams the latest 10 events on Ethereum as they happen, where log smart contract is 0x5c69…aa6f and signature name is PairCreated: transaction hash, signature name, arguments name, arguments index, arguments type, integer, value address and 4 more fields.
What it returns
- transaction hash
- signature name
- arguments name
- arguments index
- arguments type
- integer
- value address
- bool
- hex
- big integer
- string
Filters
- log smart contract is 0x5c69…aa6f
- signature name is PairCreated
The subscription
subscription {
EVM(network: eth, trigger_on: head) {
Events(
where: {Log: {Signature: {Name: {is: "PairCreated"}}, SmartContract: {is: "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f"}}, Arguments: {includes: {Name: {in: ["token0", "token1"]}, Value: {Address: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Transaction {
Hash
}
Log {
Signature {
Name
}
}
Arguments {
Name
Index
Type
Value {
... on EVM_ABI_Integer_Value_Arg {
integer
}
... on EVM_ABI_Address_Value_Arg {
address
}
... on EVM_ABI_Boolean_Value_Arg {
bool
}
... on EVM_ABI_Bytes_Value_Arg {
hex
}
... on EVM_ABI_BigInt_Value_Arg {
bigInteger
}
... on EVM_ABI_String_Value_Arg {
string
}
}
}
}
}
}
Similar queries
- All ethereum events with specific signature · Ethereum · Events
- All ethereum events · Ethereum · Events
- Latest pools created Uniswap v3 · Ethereum · Events
- stream new position mints on Fluid DEX Vault · Ethereum · Events
- stream pool and pair creation on ethereum · Ethereum · Events