I’m trying to get the most recent transactions of a token, with these data: “transaction hash”, “from”, “to”, “value”, and the “date” of each transaction.
But I don’t know in what field I should put the parameter “$address” (token contract address) to search the transactions of the specific token using API v2.
This is what my query looks like:
const GET_TRANSACTIONS = gql`
query GetTransactions($address: String!) {
EVM(network: eth, dataset: realtime) {
Transactions(limit: { count: 5 }) {
Transaction {
Hash
From
To
Value(maximum: Block_Nonce)
}
Block {
Date
}
}
}
}
`;