Skip to content

@liquality.evm.<internal>.Nft

Krasimir Raykov edited this page Mar 30, 2022 · 1 revision

Class: Nft<T, S>

@liquality/evm..Nft

Type parameters

Name
T
S

Hierarchy

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/dist/lib/Nft.d.ts:5

Properties

walletProvider

Protected walletProvider: Wallet<T, S>

Defined in

client/dist/lib/Nft.d.ts:4

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/dist/lib/Nft.d.ts:10


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/dist/lib/Nft.d.ts:11


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/dist/lib/Nft.d.ts:9


fetch

Abstract fetch(): void

Returns

void

Defined in

client/dist/lib/Nft.d.ts:13


getWallet

getWallet(): Wallet<T, S>

Returns

Wallet<T, S>

Defined in

client/dist/lib/Nft.d.ts:7


isApprovedForAll

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

Parameters

Name Type
contract AddressType
operator AddressType

Returns

Promise<boolean>

Defined in

client/dist/lib/Nft.d.ts:12


setWallet

setWallet(wallet): void

Parameters

Name Type
wallet Wallet<T, S>

Returns

void

Defined in

client/dist/lib/Nft.d.ts:6


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/dist/lib/Nft.d.ts:8

Clone this wiki locally