# Fetching snapshot of BEP20 balance at a specific timestamp

**URL:** <https://community.bitquery.io/t/fetching-snapshot-of-bep20-balance-at-a-specific-timestamp/157>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [June 10, 2021, 11:52am UTC](https://community.bitquery.io/t/fetching-snapshot-of-bep20-balance-at-a-specific-timestamp/157 "2021-06-10T11:52:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FomoTrader](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@FomoTrader](https://community.bitquery.io/u/FomoTrader)\
**Post date:** [June 10, 2021, 11:52am UTC](https://community.bitquery.io/t/fetching-snapshot-of-bep20-balance-at-a-specific-timestamp/157/1 "2021-06-10T11:52:32Z")

</div>

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  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [June 10, 2021, 3:22pm UTC](https://community.bitquery.io/t/fetching-snapshot-of-bep20-balance-at-a-specific-timestamp/157/2 "2021-06-10T15:22:34Z")

</div>

Related to this

> [@Get balances BETWEEN two dates](https://community.bitquery.io/t/get-balances-between-two-dates/108/2):
>
> To get a balance till a point in time you can use the following query { ethereum (network: bsc){ address(address: {is: "0xfE54C0A978B477Fc06faBa4a822516977E931eA9"}) { address balances( currency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"} time: {till: "2021-06-12T13:01Z"} ) { currency { symbol address name decimals } value history { block value …
