# 지갑 조회

## 지갑 조회

사용자가 보유한 지갑 정보를 가져옵니다.&#x20;

지갑 생성 방법은 [지갑 생성/복원](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/android/usage/wallet-create-restore)에서 설명합니다.&#x20;

```kotlin
val wallet = fncyWallet.getWallet()
```

#### See Also

[getWallet](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/methods#suspend-fun-getwallet)

[FncyWallet](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/domain#fncywallet)

## 지갑의 자산 가치 조회

사용자 지갑의 총 자산 가치(USD, KRW)를 가져옵니다.

```kotlin
val balance = fncyWallet.getWalletAllBalance(
    wid = wid //getWallet()에서 가져온 지갑 ID
)
```

#### See Also&#x20;

[getWalletAllBalance](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/ios/methods#func-getwalletallbalance)

[FncyBalance](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/ios/domain#fncybalance)

## 자산 조회

### 자산 목록 조회

소유하고 있는 자산 목록을 가져옵니다.

```kotlin
val assets = fncyWallet.getAssetList(
    wid = wid //getWallet()에서 가져온 지갑 ID
)
```

#### See Also

[getAssetList](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/methods#suspend-fun-getassetlist)

[FncyAsset](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/domain#fncyasset)

### 자산 단 건 조회

소유하고 있는 자산의 ID를 알고 있을 경우 해당 자산 정보를 조회할 수 있습니다.

```kotlin
val asset = fncyWallet.getAssetById(
    wid = wid, //getWallet()에서 가져온 지갑 ID
    assetId = assetID //getAssetList()에서 가져온 asset ID
)
```

#### See Also

[getAssetById](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/methods#suspend-fun-getassetbyid)

[FncyAsset](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/domain#fncyasset)

## NFT

### NFT 목록 조회

소유하고 있는 NFT목록을 가져옵니다.

```kotlin
val nfts = fncyWallet.getNFTList(
    wid = wid //getWallet()에서 가져온 지갑 ID
    filter = NFTOption.All,
    pageNo = 1,
    pageSize = 20
)
```

#### See Also

[getNFTList](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/methods#suspend-fun-getnftlist)

[FncyNFT](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/domain#fncynft)

### NFT 단 건 조회

소유하고 있는 NFT의 ID를 알고 있을 경우 해당 NFT를 조회할 수 있습니다.

```kotlin
val nft = fncyWallet.getNFTById(
    wid = wid, //getWallet()에서 가져온 지갑 ID
    nftId = nftId //getAssetList에서 가져온 NFT ID
)
```

#### See Also

[getNFTById](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/methods#suspend-fun-getnftbyid)

[FncyNFT](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/domain#fncynft)
