Interface: TokenQueryExtensionMethods
@shareledgerjs/client.token.TokenQueryExtensionMethods
Methods
allowance
▸ allowance(contractAddress
, owner
, spender
, height?
): Promise
<AllowanceResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
owner | string |
spender | string |
height? | number |
Returns
Promise
<AllowanceResponse
>
allowances
▸ allowances(contractAddress
, owner
, after?
, limit?
, height?
): Promise
<AllowanceInfo
[]>
Parameters
Name | Type |
---|---|
contractAddress | string |
owner | string |
after? | string |
limit? | number |
height? | number |
Returns
Promise
<AllowanceInfo
[]>
balance
▸ balance(contractAddress
, address
, height?
): Promise
<string
>
Parameters
Name | Type |
---|---|
contractAddress | string |
address | string |
height? | number |
Returns
Promise
<string
>
holders
▸ holders(contractAddress
, after?
, limit?
, height?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
contractAddress | string |
after? | string |
limit? | number |
height? | number |
Returns
Promise
<string
[]>
metadata
▸ metadata(contractAddress
, height?
): Promise
<QueryContractInfoResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
height? | number |
Returns
Promise
<QueryContractInfoResponse
>
minter
▸ minter(contractAddress
, height?
): Promise
<MinterResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
height? | number |
Returns
Promise
<MinterResponse
>
spenderAllowances
▸ spenderAllowances(contractAddress
, spender
, after?
, limit?
, height?
): Promise
<SpenderAllowanceInfo
[]>
Parameters
Name | Type |
---|---|
contractAddress | string |
spender | string |
after? | string |
limit? | number |
height? | number |
Returns
Promise
<SpenderAllowanceInfo
[]>
tokenMetadata
▸ tokenMetadata(contractAddress
, height?
): Promise
<TokenInfoResponse
>
Parameters
Name | Type |
---|---|
contractAddress | string |
height? | number |
Returns
Promise
<TokenInfoResponse
>