fetch txn hashes

Returns 250 DEX trades on Ethereum and BNB Chain, where buy currency is 0x620f…fc6b and tx sender is 0x7cb1…dea6: transaction hash, tx from address, buy currency name, sell currency name, taker address, buy amount and sell amount.

By Tugay · saved 11 April 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($offset:Int!, $token:String!, $addresses:[String!])
{
  ethereum(network: bsc) {
    dexTrades(
      
      buyCurrency: {is: $token}
    	txSender:{in:$addresses}
    options:{limit:250, offset:$offset}
    ){
      transaction{
        hash
        txFrom{
          address
        }
      }
      
      buyCurrency{
        name
      }
	sellCurrency{
        name
      }
      taker{
        address
      }
      
      buyAmount
      sellAmount
    }
  }
}

Variables

{
  "token":"0x620fdd450766c439230e72df06b5eb9ec4d7fc6b",
	"offset":0,
  "addresses":["0x7cb1edf8a6897bc01d3e6da63440445b9a20dea6"]
}

Similar queries