2. Get Data
Overview
This guide provides information on how to obtain data from the Zecrey NFT Marketplace. In most cases, this data is about the current status of the NFT marketplace (i.e. asset ownership and asset status). Most forms of data available are read-only, so user authentication is not required to update the Zecrey NFT marketplace status. This section describes the method to directly call the SDK package.
Examples of obtained data types commonly include:
Detailed information on assets or a specific asset, including obtaining account information, categories, collections, your own NFTs, tradable offers, etc.
Information of a specific user in the NFT marketplace
Account
Get account details by account name
Get information on the account by
accountName
📚SDK REFERENCE
Get assets by account name
Query the user's asset information
Token
Token ID
BNB
0
LEG
1
REY
2
📚SDK REFERENCE
Get assets information
Query user asset information
Token information
Token
Token ID
BNB
0
LEG
1
REY
2
📚SDK REFERENCE
Get account index
Query
accountIndex
📚SDK REFERENCE
Get account registration status
Query whether the
accountName
has been registered
📚SDK REFERENCE
Category
Get NFT categories
Get all NFT categories
📚SDK REFERENCE
Collections
In the returned details about a collection, there will be a status attribute indicating its
status
(pending, created, expired, invalid, etc.).The
status
of collections can be one of the following:
Status
CodeNumber
PENDING
0
CREATED
1
EXPIRED
2
INVALID
10
Get collections of an account by account index
Get the collections belonging to this account through
accountIndex
The results returned include:
confirmedCollectionIdList
: The collections that have been confirmed by Zecrey and exist in the form of an array id. And the details can be obtained throughGetCollectionById
.pendingCollections
: Collections under the pending status are waiting to be confirmed by Zecrey and cannot be used.
📚SDK REFERENCE
Get collection details by ID
Get the collection information through
collectionID
📚SDK REFERENCE
NFT
In the returned details about an NFT, there will be a status attribute indicating its
status
(pending, created, expired, invalid, etc.).The NFT
status
can be one of the following:Status
CodeNumber
PENDING
0
CREATED
1
EXPIRED
2
INVALID
10
Get NFTs of an account
Get the NFTs belonging to this account through the
accountIndex
oraccountName
The results returned include:
ConfirmedAssetIdList
: NFTs that have been confirmed by Zecrey and exist in the form of an array id. And the specific NFT information can be obtained through Get NFT by IDPendingAssets
: NFTs that are in pending status and waiting to be confirmed by Zecrey, which cannot be used for the following operations:transfer
,withdraw
,listOffer
,makeOffer
📚SDK REFERENCE
Get NFT details by ID
Get the NFT information through
NftId
📚SDK REFERENCE
Offers
In the returned details about an offer, there will be a status attribute indicating its
status
(pending, created, expired, invalid, etc.).The offer
status
can be one of the following:
Status
CodeNumber
Pending
0
Offer Created
1
matchOffer to be Verified on L2
2
matchOffer Verified on L2
3
Offer Canceled
4
Expired
6
Invalid
10
Get offers of an account
Get the offers of this account through
accountIndex