Skip to main content

Interface: NftQueryExtensionMethods

@shareledgerjs/client.nft.NftQueryExtensionMethods

Methods

balance

balance(contractAddress, owner, tokenId): Promise<string>

Parameters

NameType
contractAddressstring
ownerstring
tokenIdstring

Returns

Promise<string>


balances

balances(contractAddress, owner, tokenIds): Promise<Record<string, string>>

Parameters

NameType
contractAddressstring
ownerstring
tokenIdsstring[]

Returns

Promise<Record<string, string>>


metadata

metadata(contractAddress): Promise<QueryContractInfoResponse>

Parameters

NameType
contractAddressstring

Returns

Promise<QueryContractInfoResponse>


minter

minter(contractAddress): Promise<string>

Parameters

NameType
contractAddressstring

Returns

Promise<string>


nftInfo

nftInfo(contractAddress, tokenId, includeExpired?): Promise<any>

Parameters

NameType
contractAddressstring
tokenIdstring
includeExpired?boolean

Returns

Promise<any>


operators

operators(contractAddress, owner, includeExpired?, after?, limit?): Promise<Approval[]>

Parameters

NameType
contractAddressstring
ownerstring
includeExpired?boolean
after?string
limit?number

Returns

Promise<Approval[]>


ownerOf

ownerOf(contractAddress, tokenId, includeExpired?): Promise<OwnerOfResponse>

Parameters

NameType
contractAddressstring
tokenIdstring
includeExpired?boolean

Returns

Promise<OwnerOfResponse>


tokenMetadata

tokenMetadata(contractAddress, tokenId): Promise<TokenInfoResponse>

Parameters

NameType
contractAddressstring
tokenIdstring

Returns

Promise<TokenInfoResponse>


tokens

tokens(contractAddress, address?, after?, limit?): Promise<string[]>

Parameters

NameType
contractAddressstring
address?string
after?string
limit?number

Returns

Promise<string[]>


tokensCount

tokensCount(contractAddress): Promise<number>

Parameters

NameType
contractAddressstring

Returns

Promise<number>