Interface: NftQueryExtensionMethods
@shareledgerjs/client.nft.NftQueryExtensionMethods
Methods
balance
▸ balance(contractAddress
, owner
, tokenId
): Promise
<string
>
Parameters
Name | Type |
---|---|
contractAddress | string |
owner | string |
tokenId | string |
Returns
Promise
<string
>
balances
▸ balances(contractAddress
, owner
, tokenIds
): Promise
<Record
<string
, string
>>
Parameters
Name | Type |
---|---|
contractAddress | string |
owner | string |
tokenIds | string [] |
Returns
Promise
<Record
<string
, string
>>
metadata
▸ metadata(contractAddress
): Promise
<QueryContractInfoResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
Returns
Promise
<QueryContractInfoResponse
>
minter
▸ minter(contractAddress
): Promise
<string
>
Parameters
Name | Type |
---|---|
contractAddress | string |
Returns
Promise
<string
>
nftInfo
▸ nftInfo(contractAddress
, tokenId
, includeExpired?
): Promise
<any
>
Parameters
Name | Type |
---|---|
contractAddress | string |
tokenId | string |
includeExpired? | boolean |
Returns
Promise
<any
>
operators
▸ operators(contractAddress
, owner
, includeExpired?
, after?
, limit?
): Promise
<Approval
[]>
Parameters
Name | Type |
---|---|
contractAddress | string |
owner | string |
includeExpired? | boolean |
after? | string |
limit? | number |
Returns
Promise
<Approval
[]>
ownerOf
▸ ownerOf(contractAddress
, tokenId
, includeExpired?
): Promise
<OwnerOfResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
tokenId | string |
includeExpired? | boolean |
Returns
Promise
<OwnerOfResponse
>
tokenMetadata
▸ tokenMetadata(contractAddress
, tokenId
): Promise
<TokenInfoResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
tokenId | string |
Returns
Promise
<TokenInfoResponse
>
tokens
▸ tokens(contractAddress
, address?
, after?
, limit?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
contractAddress | string |
address? | string |
after? | string |
limit? | number |
Returns
Promise
<string
[]>
tokensCount
▸ tokensCount(contractAddress
): Promise
<number
>
Parameters
Name | Type |
---|---|
contractAddress | string |
Returns
Promise
<number
>