-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nfts_by_issuer data type (#2694)
* add nfts_by_issuer data type * update HISTORY.md * update HISTORY.md * added to index and change field name * change to added in history * reformat change in history * reformat history on bfts_by_issuer --------- Authored-by: Kassaking <kassaking7@gmail.com>
- Loading branch information
1 parent
036f1f9
commit d3b03a5
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { NFToken } from '../common' | ||
|
||
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod' | ||
|
||
/** | ||
* The nfts_by_issuer method returns a list of NFTokens issued by the account. | ||
* The order of the NFTs is not associated with the date the NFTs were minted. | ||
* Expects a response in the form of a {@link | ||
* NFTsByIssuerResponse}. | ||
* | ||
* @category Requests | ||
*/ | ||
export interface NFTsByIssuerRequest | ||
extends BaseRequest, | ||
LookupByLedgerRequest { | ||
command: 'nfts_by_issuer' | ||
/** | ||
* A unique identifier for the account, most commonly the account's address | ||
*/ | ||
issuer: string | ||
/** | ||
* Value from a previous paginated response. Resume retrieving data where | ||
* that response left off. This value is stable even if there is a change in | ||
* the server's range of available ledgers. | ||
*/ | ||
marker?: unknown | ||
/** | ||
* Filter NFTs issued by this issuer that have this taxon. | ||
*/ | ||
nft_taxon?: number | ||
/** | ||
* Default varies. Limit the number of transactions to retrieve. The server | ||
* is not required to honor this value. | ||
*/ | ||
limit?: number | ||
} | ||
|
||
/** | ||
* Expected response from an {@link NFTsByIssuerRequest}. | ||
* | ||
* @category Responses | ||
*/ | ||
export interface NFTsByIssuerResponse extends BaseResponse { | ||
result: { | ||
/** | ||
* The unique identifier for the account, most commonly the account's address | ||
*/ | ||
issuer: string | ||
/** | ||
* A list of NFTs issued by the account. | ||
* The order of the NFTs is not associated with the date the NFTs were minted. | ||
*/ | ||
nfts: NFToken[] | ||
/** | ||
* Server-defined value indicating the response is paginated. Pass this | ||
* to the next call to resume where this call left off. | ||
*/ | ||
marker?: unknown | ||
/** | ||
* The limit value used in the request. | ||
*/ | ||
limit?: number | ||
/** | ||
* Use to filter NFTs issued by this issuer that have this taxon. | ||
*/ | ||
nft_taxon?: number | ||
} | ||
} |