Mempool - Token's first trade

Streams one DEX trade as they happen, where buy currency smart contract is 0x5dad…69a7, sorted by block time: buy amount, buy buyer, buy currency name, buy currency symbol, buy smart contract, buy price, buy seller and 2 more fields.

By gaurav · saved 25 January 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(mempool: true) {
    DEXTrades(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x5dad0ffbef20409f88134834039a80bd97f269a7"}}}}}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Price
          Seller
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}

Similar queries