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

Language:

fetchNFTsByOwnerAddresses

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


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

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

Home

Tutorials

Guides

API Reference