# How to distinguish objects that only contain sui, but not other objects？

**URL:** <https://forums.sui.io/t/how-to-distinguish-objects-that-only-contain-sui-but-not-other-objects/43256>\
**Category:** Technical Support\
**Created:** [April 26, 2023, 4:05am UTC](https://forums.sui.io/t/how-to-distinguish-objects-that-only-contain-sui-but-not-other-objects/43256 "2023-04-26T04:05:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abel](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Abel](https://forums.sui.io/u/Abel)\
**Post date:** [April 26, 2023, 4:05am UTC](https://forums.sui.io/t/how-to-distinguish-objects-that-only-contain-sui-but-not-other-objects/43256/1 "2023-04-26T04:05:31Z")

</div>

I use this rpc: [JSON RPC Docs | Sui Docs](https://docs.sui.io/sui-jsonrpc#suix_getOwnedObjects) to get all Objeect Of address, but how to distinguish objects that only contain sui, but not other objects? is therer any rpc can do it ?

---

<div class="post-metadata">

**Author:** ![fastfrank](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/fastfrank/32/1138_2.png) [@fastfrank](https://forums.sui.io/u/fastfrank)\
**Post date:** [April 26, 2023, 8:16am UTC](https://forums.sui.io/t/how-to-distinguish-objects-that-only-contain-sui-but-not-other-objects/43256/2 "2023-04-26T08:16:23Z")

</div>

There are a number of RPC API that will only return ‘coins’:  
suix\_getAllBalances  
suix\_getAllCoins  
suix\_getBalance  
suix\_getCoinMetadata  
suix\_getCoins

---

<div class="post-metadata">

**Author:** ![Aaron](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/aaron/32/29732_2.png) [@Aaron](https://forums.sui.io/u/Aaron)\
**Post date:** [April 26, 2023, 2:10pm UTC](https://forums.sui.io/t/how-to-distinguish-objects-that-only-contain-sui-but-not-other-objects/43256/3 "2023-04-26T14:10:08Z")

</div>

what you probably want is this

```auto
curl --location --request POST 'https://sui-testnet-kr-1.cosmostation.io//' \
--header 'Content-Type: application/json' \
--data-raw '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_getCoins",
  "params": [
    "0x4f92db7b8ef26a9b1a6f36b255070d780d71f12a814588748e8030b4eae020b1",
    "0x2::sui::SUI"
  ]
}'

```
