# 지갑 조회

## 지갑 조회

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

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

```swift
let wallet: FncyWallet = try await fncyWallet.getWallet()
```

#### See Also&#x20;

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

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

## 지갑의 자산 가치 조회

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

```swift
let balance: FncyBalance = try await fncyWallet.getWalletAllBalance(
wid: wid //getWallet()에서 가져온 지갑 ID
)
```

#### See Also

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

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

## 자산 조회

### 자산 목록 조회

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

```swift
let assets: [FncyAsset] = try await fncyWallet.getAssetList(
wid: wid //getWallet()에서 가져온 지갑 ID
)
```

#### See Also

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

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

### 자산 단 건 조회

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

```swift
let asset: FncyAsset = try await fncyWallet.getAssetById(
wid: wid, //getWallet()에서 가져온 지갑 ID
assetId: assetID //getAssetList()에서 가져온 asset ID
)
```

#### See Also&#x20;

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

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

## NFT

### NFT 목록 조회

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

```swift
let nfts: [FncyNFT] = try await fncyWallet.getNFTList(
wid: wid //getWallet()에서 가져온 지갑 ID
)
```

#### See Also

[getNFTList](https://docs.fncy.world/fncy-2.0.2-kor/for-developers/wallet/sdk/methods#func-getnftlist)&#x20;

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

### NFT 단 건 조회

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

```swift
let nft: FncyNFT = try await 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#func-getnftbyid)

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