# SmartContract Burn and Mint events

**URL:** <https://community.bitquery.io/t/smartcontract-burn-and-mint-events/369>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [August 1, 2021, 7:42am UTC](https://community.bitquery.io/t/smartcontract-burn-and-mint-events/369 "2021-08-01T07:42:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![procrustes](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@procrustes](https://community.bitquery.io/u/procrustes)\
**Post date:** [August 1, 2021, 7:42am UTC](https://community.bitquery.io/t/smartcontract-burn-and-mint-events/369/1 "2021-08-01T07:42:36Z")

</div>

Hi!

I want to get add/remove amount from pools. So im running this query but there is a problem with Value number: it returns without any separator - 1.899463739435306552 turns into 1899463739435306552 and 0.095332671688856338 into 95332671688856338 and so on. Example from contract address: 0x0faff2264fcc6b1c9e8b245e37d11eef951fa958 and block height: 9643812 ([Binance Transaction Hash (Txhash) Details | BscScan](https://bscscan.com/tx/0x020ea170e90a89aefbc675b8bd59cdbf8328fa00308464bd72a4b4b93c2d99ce))

I did this query with different contract addresses and checked info with bscscan thats why im sure that i get wrong numbers. Can you help me? Also is there any chances to get this value in USD?

**query**

query MyQuery {  
ethereum(network: bsc) {  
smartContractEvents(  
smartContractEvent: {is: “Burn”}  
date: {is: “2021-08-01”}  
) {  
block {  
height  
}  
arguments {  
value  
argument  
}  
smartContract {  
address {  
address  
}  
}  
}  
}  
}

**part of the response**

{  
“ethereum”: {  
“smartContractEvents”: [  
{  
“block”: {  
“height”: 9643812  
},  
“arguments”: [  
{  
“value”: “0x05ff2b0db69458a0750badebc4f9e13add608c7f”,  
“argument”: “sender”  
},  
{  
“value”: “1899463739435306552”,  
“argument”: “amount0”  
},  
{  
“value”: “95332671688856338”,  
“argument”: “amount1”  
},  
{  
“value”: “0x4c19ef8a2c72e71fffe8d182878294030bd3b441”,  
“argument”: “to”  
}  
],  
“smartContract”: {  
“address”: {  
“address”: “0x0faff2264fcc6b1c9e8b245e37d11eef951fa958”  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [August 2, 2021, 8:33am UTC](https://community.bitquery.io/t/smartcontract-burn-and-mint-events/369/2 "2021-08-02T08:33:32Z")

</div>

Hi @procrustes I checked through the query and it seems that the values returned by the GraphQL IDE are the same that you observe on [Binance Transaction Hash (Txhash) Details | BscScan](https://bscscan.com/tx/0xb76f485aa11ace678f238f0271a2d568eee37a81b05f6e09c56b69cc13dbc7e6). It is just that the values returned in the **Binance Transaction Hash (TxHash) Details | BscScan** are e-18 times the value returned by **Bitquery GraphQL API**.

---

<div class="post-metadata">

**Author:** ![procrustes](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@procrustes](https://community.bitquery.io/u/procrustes)\
**Post date:** [August 2, 2021, 8:57am UTC](https://community.bitquery.io/t/smartcontract-burn-and-mint-events/369/3 "2021-08-02T08:57:32Z")

</div>

So what i need to do? I see only one solution with two queries: 1 - get all day data with Burn events, 2 - make a list with all contract addresses and put it into second query to get decimals for every token.

Is there a simpler option?

---

<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:** [August 10, 2021, 8:30am UTC](https://community.bitquery.io/t/smartcontract-burn-and-mint-events/369/4 "2021-08-10T08:30:26Z")

</div>

I think yes… you need a decimal amount. However, I think most of them use 18 decimal points.
