Transaction, trade, call, transfers

Returns 10 DEX trades and transactions: block time, transaction hash, buy amount, buy amount in USD, buy buyer, buy smart contract, buy decimals and 58 more fields.

By gaurav · saved 10 May 2024 · run 7 times · Bitquery API v2

What it returns

The query

{
  EVM(dataset: combined) {
    DEXTrades(limit: {count: 10}) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          AmountInUSD
          Buyer
          Currency {
            SmartContract
            Decimals
            Name
            Symbol
          }
          Price
          Seller
        }
        Sell {
          Amount
          AmountInUSD
          Buyer
          Currency {
            SmartContract
            Decimals
            Name
            Symbol
          }
          Price
          Seller
        }
      }
    }
    Transactions(limit: {count: 10}) {
      Block {
        Time
        Number
      }
      Transaction {
        From
        To
        Gas
        GasFeeCap
        GasPrice
        GasPriceInUSD
        GasTipCap
        Hash
        Value
        ValueInUSD
      }
      Fee {
        Burnt
        BurntInUSD
        EffectiveGasPrice
        EffectiveGasPriceInUSD
        GasRefund
        MinerReward
        MinerRewardInUSD
        PriorityFeePerGas
        PriorityFeePerGasInUSD
        Savings
        SavingsInUSD
        SenderFee
        SenderFeeInUSD
      }
    }
    Transfers(limit: {count: 10}) {
      Transaction {
        Hash
      }
      Transfer {
        Sender
        Receiver
        Amount
        AmountInUSD
        Currency {
          Name
          SmartContract
          Symbol
          Decimals
        }
        Id
        URI
      }
    }
    Calls(limit: {count: 10}) {
      Transaction {
        Hash
      }
      Call {
        Create
        From
        InternalCalls
        To
        Value
        ValueInUSD
        Signature {
          Name
        }
        Reverted
      }
      Arguments {
        Name
        Value {
          __typename
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}

Similar queries