지갑 조회

이 문서는 지갑 조회 방법에 대하여 설명합니다.

지갑 조회

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

지갑 생성 방법은 지갑 생성/복원에서 설명합니다.

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

See Also

getWallet

FncyWallet

지갑의 자산 가치 조회

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

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

See Also

getWalletAllBalance

FncyBalance

자산 조회

자산 목록 조회

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

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

See Also

getAssetList

FncyAsset

자산 단 건 조회

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

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

See Also

getAssetById

FncyAsset

NFT

NFT 목록 조회

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

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

See Also

getNFTList

FncyNFT

NFT 단 건 조회

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

let nft: FncyNFT = try await fncyWallet.getNFTById(
wid: wid, //getWallet()에서 가져온 지갑 ID
nftId:NFTID //getAssetList에서 가져온 NFT ID
)

See Also

getNFTById

FncyNFT

Last updated