# Units of amount0/1

**URL:** <https://community.bitquery.io/t/units-of-amount0-1/646>\
**Category:** GraphQL API\
**Created:** [November 18, 2021, 8:30pm UTC](https://community.bitquery.io/t/units-of-amount0-1/646 "2021-11-18T20:30:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![benmcd555](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@benmcd555](https://community.bitquery.io/u/benmcd555)\
**Post date:** [November 18, 2021, 8:30pm UTC](https://community.bitquery.io/t/units-of-amount0-1/646/1 "2021-11-18T20:30:01Z")

</div>

What are the units for amount 0 and 1? I thought I was querying the pairs address of USDC/ETH but I cant make out the results units. If usdc/eth the values are way too high for what is currently locked.

query MyQuery {  
ethereum {  
smartContractEvents(  
smartContractAddress: {is: “0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc”}  
smartContractEvent: {is: “Mint”}  
options: {limit: 10, desc: “block.height”}  
) {  
block {  
height  
}  
arguments {  
value  
argument  
}  
smartContract {  
currency {  
symbol  
}  
}  
}  
}  
}

---

<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:** [November 19, 2021, 6:45am UTC](https://community.bitquery.io/t/units-of-amount0-1/646/2 "2021-11-19T06:45:59Z")

</div>

> [@benmcd555](#):
>
> {  
> ethereum {  
> transfers(  
> date: {is: “2021-09-01”}  
> amount: {gt: 0}  
> receiver: {is: “0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc”}  
> ) {  
> block {  
> timestamp {  
> time(format: “%Y-%m-%d %H:%M:%S”)  
> }  
> height  
> }  
> address: sender {  
> address  
> annotation  
> }  
> currency {  
> address  
> symbol  
> }  
> amount  
> external  
> }  
> }  
> }

What are you trying to do?

---

<div class="post-metadata">

**Author:** ![benmcd555](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@benmcd555](https://community.bitquery.io/u/benmcd555)\
**Post date:** [November 19, 2021, 10:39am UTC](https://community.bitquery.io/t/units-of-amount0-1/646/3 "2021-11-19T10:39:39Z")

</div>

To look at values minted on the address 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc then values burn to try and piece together pool liquidity over time. New query used but still dont understant the amounts.  
Query  
query MyQuery {  
ethereum {  
smartContractEvents(  
smartContractAddress: {is: “0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc”}  
smartContractEvent: {is: “Mint”}  
options: {limit: 10, desc: “block.height”}  
) {  
block {  
height  
}  
arguments {  
value  
argument  
}  
smartContract {  
currency {  
symbol  
}  
}  
}  
}  
}  
Results  
{  
“ethereum”: {  
“smartContractEvents”: [  
{  
“block”: {  
“height”: 13644939  
},  
“arguments”: [  
{  
“value”: “0x7a250d5630b4cf539739df2c5dacb4c659f2488d”,  
“argument”: “sender”  
},  
{  
“value”: “207809183688”,  
“argument”: “amount0”  
},  
{  
“value”: “50000000000000000000”,  
“argument”: “amount1”  
}  
],  
“smartContract”: {  
“currency”: {  
“symbol”: “UNI-V2”  
}  
}  
},

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://community.bitquery.io/u/aman)\
**Post date:** [November 22, 2021, 6:51am UTC](https://community.bitquery.io/t/units-of-amount0-1/646/4 "2021-11-22T06:51:29Z")

</div>

Could you simplify your objective and what are you trying to do

---

<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:** [November 22, 2021, 10:08am UTC](https://community.bitquery.io/t/units-of-amount0-1/646/5 "2021-11-22T10:08:54Z")

</div>

Try a query like this

> [@How to get liquidity providers for a pool/protocol](https://community.bitquery.io/t/how-to-get-liquidity-providers-for-a-pool-protocol/649/3):
>
> You can get it through the Mint event For example check following example which get USDT-WETH pairs mint event data { ethereum(network: ethereum) { arguments( options: {desc: ["block.height","index"], limit: 10} smartContractAddress: {in: "0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852", } smartContractEvent: {is: "Mint"} ) { block { height } index sender: any(of: argument\_value, argument: {is: "sender"}) amount0: any(of: argument\_v…

Here amount0 and amount1 represent the currencies in the pair.

So if it’s USDT-WETH pair, then amount0 might be USDT and amount1 is WETH and vice versa.

---

<div class="post-metadata">

**Author:** ![benmcd555](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@benmcd555](https://community.bitquery.io/u/benmcd555)\
**Post date:** [November 22, 2021, 1:34pm UTC](https://community.bitquery.io/t/units-of-amount0-1/646/7 "2021-11-22T13:34:09Z")

</div>

Thanks. I did this for 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc and it only gave the amount of ether provided to the pool. Is it possible to also get the amount of USDC provided?

---

<div class="post-metadata">

**Author:** ![benmcd555](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@benmcd555](https://community.bitquery.io/u/benmcd555)\
**Post date:** [November 22, 2021, 1:48pm UTC](https://community.bitquery.io/t/units-of-amount0-1/646/8 "2021-11-22T13:48:04Z")

</div>

This does this. Thank you for the help. Posted for anyone else  
query MyQuery {  
ethereum {  
smartContractEvents(  
smartContractAddress: {is: “0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc”}  
smartContractEvent: {is: “Mint”}  
options: {limit: 10, desc: “block.height”}  
) {  
block {  
height  
}  
arguments {  
value  
argument  
}  
smartContract {  
currency {  
symbol  
}  
}  
}  
}  
}
