Counting transactions

I have the following query:

query CallsToSmartContractAddressByCallerInAscendingTimestamp($caller: String, $smartContractAddress: String) {
  ethereum {
    smartContractCalls(
      caller: {is: $caller}
      options: {asc: "block.timestamp.iso8601", limit: 10}
      smartContractAddress: {is: $smartContractAddress}
    ) {
      block {
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
        gasValue
      }
      smartContractMethod {
        name
      }
    }
    transactions {
      count
    }
  }
}

When called with the following variables,

{
  "caller": "0x1805a813C8943a1C2C78b3C7400C30005C9887B2",
  "smartContractAddress": "0xEFb47D73181bB6963c8113A58184525355287573"
}

The transaction count should return 10, but I’m getting 1228669333 in count.

How should I alter the query so that it returns a count of 10, since I’ve limited the query to 10 responses? If I remove the limit option, would the count actually count the number of responses returned, instead of the number of transactions it processes?

If the limit is removed, it still shows the total transaction counts and not the number of responses. However, you can add an extra parameter and filter to your query if you want to see 10 as the limit of trades or simply the number of trades returned by the query through

query CallsToSmartContractAddressByCallerInAscendingTimestamp($caller: String, $smartContractAddress: String, $limit: Int) {
  ethereum {
    smartContractCalls(
      caller: {is: $caller}
      options: {asc: "block.timestamp.iso8601", limit: $limit}
      smartContractAddress: {is: $smartContractAddress}
    ) { 
      
      block {
        
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
        
        gasValue
      }
      smartContractMethod {
        name
        
      }
    }
    transactions {
      count
      index(txIndex: {is: $limit})
    }
  }
}

Adding an extra variable

{
  "limit": 10,
  "caller": "0x1805a813C8943a1C2C78b3C7400C30005C9887B2",
  "smartContractAddress": "0xEFb47D73181bB6963c8113A58184525355287573"
}