Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

searchNFTsByOwner

Fetch NFTs By Owner Addresses. Returns a detailed payload of all NFTs whose owners are provided.


List<String> owners = new ArrayList<>();
owners.add("owner address 1");
int limit = 99;
int offset = 1;
MirrorWorld.searchNFTsByOwner(owners, limit, offset, new FetchByOwnerListener() {
@Override
public void onFetchSuccess(MultipleNFTsResponse multipleNFTsResponse) {
int count = multipleNFTsResponse.nfts.size();
String countStr = "You have " + count + " NFTs";
Log.d("MirrorSDK",countStr);
}
@Override
public void onFetchFailed(long code, String message) {
Log.d("MirrorSDK","searchNFTsByOwner faild,code:"+code+" message:"+message);
}
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

Home

Integration

Guides

API Reference