Skip to content

@liquality.client.Nft

Krasimir Raykov edited this page Mar 30, 2022 · 3 revisions

Class: Nft<T, S>

@liquality/client.Nft

Type parameters

Name
T
S

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Nft<T, S>(walletProvider?)

Type parameters

Name
T
S

Parameters

Name Type
walletProvider? Wallet<T, S>

Defined in

client/lib/Nft.ts:7

Properties

walletProvider

Protected walletProvider: Wallet<T, S>

Defined in

client/lib/Nft.ts:5

Methods

approve

Abstract approve(contract, operator, tokenID): Promise<Transaction<any>>

Parameters

Name Type
contract AddressType
operator AddressType
tokenID number

Returns

Promise<Transaction<any>>

Defined in

client/lib/Nft.ts:30


approveAll

Abstract approveAll(contract, operator, state): Promise<Transaction<any>>

Parameters

Name Type
contract AddressType
operator AddressType
state boolean

Returns

Promise<Transaction<any>>

Defined in

client/lib/Nft.ts:32


balanceOf

Abstract balanceOf(contractAddress, owners, tokenIDs): Promise<BigNumber | BigNumber[]>

Parameters

Name Type
contractAddress AddressType
owners AddressType[]
tokenIDs number[]

Returns

Promise<BigNumber | BigNumber[]>

Defined in

client/lib/Nft.ts:28


fetch

Abstract fetch(): void

Returns

void

Defined in

client/lib/Nft.ts:36


getWallet

getWallet(): Wallet<T, S>

Returns

Wallet<T, S>

Defined in

client/lib/Nft.ts:15


isApprovedForAll

Abstract isApprovedForAll(contract, operator): Promise<boolean>

Parameters

Name Type
contract AddressType
operator AddressType

Returns

Promise<boolean>

Defined in

client/lib/Nft.ts:34


setWallet

setWallet(wallet): void

Parameters

Name Type
wallet Wallet<T, S>

Returns

void

Defined in

client/lib/Nft.ts:11


transfer

Abstract transfer(contract, receiver, tokenIDs, values?, data?, fee?): Promise<Transaction<any>>

Parameters

Name Type
contract AddressType
receiver AddressType
tokenIDs number[]
values? number[]
data? string
fee? FeeType

Returns

Promise<Transaction<any>>

Defined in

client/lib/Nft.ts:19

Clone this wiki locally