Skip to main content

Interface: TokenQueryExtensionMethods

@shareledgerjs/client.token.TokenQueryExtensionMethods

Methods

allowance

allowance(contractAddress, owner, spender, height?): Promise<AllowanceResponse>

Parameters

NameType
contractAddressstring
ownerstring
spenderstring
height?number

Returns

Promise<AllowanceResponse>


allowances

allowances(contractAddress, owner, after?, limit?, height?): Promise<AllowanceInfo[]>

Parameters

NameType
contractAddressstring
ownerstring
after?string
limit?number
height?number

Returns

Promise<AllowanceInfo[]>


balance

balance(contractAddress, address, height?): Promise<string>

Parameters

NameType
contractAddressstring
addressstring
height?number

Returns

Promise<string>


holders

holders(contractAddress, after?, limit?, height?): Promise<string[]>

Parameters

NameType
contractAddressstring
after?string
limit?number
height?number

Returns

Promise<string[]>


metadata

metadata(contractAddress, height?): Promise<QueryContractInfoResponse>

Parameters

NameType
contractAddressstring
height?number

Returns

Promise<QueryContractInfoResponse>


minter

minter(contractAddress, height?): Promise<MinterResponse>

Parameters

NameType
contractAddressstring
height?number

Returns

Promise<MinterResponse>


spenderAllowances

spenderAllowances(contractAddress, spender, after?, limit?, height?): Promise<SpenderAllowanceInfo[]>

Parameters

NameType
contractAddressstring
spenderstring
after?string
limit?number
height?number

Returns

Promise<SpenderAllowanceInfo[]>


tokenMetadata

tokenMetadata(contractAddress, height?): Promise<TokenInfoResponse>

Parameters

NameType
contractAddressstring
height?number

Returns

Promise<TokenInfoResponse>