I’m trying to fetch the balances at a specific timestamp for a particular smart contract, I’d like a snapshot at a particular time period.
This query fetches the balances but the timestamp does not work as expected, or there’s a bug in the system. The datetime is encoded as ISO 8601-encoded datetime
{
ethereum(network: bsc) {
transfers(
options: {desc: “block.timestamp.time”, limit: 20}
date: {before: “2021-06-09T03:46:35+0000”}
amount: {gt: 0}
currency: {is: “0xf2e00684457de1a3c87361bc4bfe2de92342306c”}
) {
block {
timestamp {
time(format: “%Y-%m-%d %H:%M:%S”)
}
height
}
sender {
address
annotation
}
receiver {
address
annotation
}
transaction {
hash
}
amount(amount: {gt: 1000000000})
currency {
symbol
}
external
}
}
}