Skip to content

@liquality.evm.EvmNftProvider

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

Class: EvmNftProvider

@liquality/evm.EvmNftProvider

Hierarchy

  • Nft<BaseProvider, Signer>

    EvmNftProvider

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EvmNftProvider(walletProvider, httpConfig)

Parameters

Name Type
walletProvider EvmBaseWalletProvider<BaseProvider, Signer>
httpConfig AxiosRequestConfig<any>

Overrides

Nft.constructor

Defined in

evm/lib/nft/EvmNftProvider.ts:22

Properties

walletProvider

Protected walletProvider: Wallet<BaseProvider, Signer>

Inherited from

Nft.walletProvider

Defined in

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

Methods

approve

approve(contractAddress, operator, tokenID, fee?): Promise<Transaction<TransactionResponse>>

Parameters

Name Type
contractAddress AddressType
operator AddressType
tokenID number
fee? FeeType

Returns

Promise<Transaction<TransactionResponse>>

Overrides

Nft.approve

Defined in

evm/lib/nft/EvmNftProvider.ts:102


approveAll

approveAll(contractAddress, operator, state, fee?): Promise<Transaction<TransactionResponse>>

Parameters

Name Type
contractAddress AddressType
operator AddressType
state boolean
fee? FeeType

Returns

Promise<Transaction<TransactionResponse>>

Overrides

Nft.approveAll

Defined in

evm/lib/nft/EvmNftProvider.ts:138


balanceOf

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

Parameters

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

Returns

Promise<BigNumber | BigNumber[]>

Overrides

Nft.balanceOf

Defined in

evm/lib/nft/EvmNftProvider.ts:78


fetch

fetch(): Promise<any>

Returns

Promise<any>

Overrides

Nft.fetch

Defined in

evm/lib/nft/EvmNftProvider.ts:149


getWallet

getWallet(): Wallet<BaseProvider, Signer>

Returns

Wallet<BaseProvider, Signer>

Inherited from

Nft.getWallet

Defined in

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


isApprovedForAll

isApprovedForAll(contractAddress, operator): Promise<boolean>

Parameters

Name Type
contractAddress AddressType
operator AddressType

Returns

Promise<boolean>

Overrides

Nft.isApprovedForAll

Defined in

evm/lib/nft/EvmNftProvider.ts:132


setWallet

setWallet(wallet): void

Parameters

Name Type
wallet Wallet<BaseProvider, Signer>

Returns

void

Inherited from

Nft.setWallet

Defined in

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


transfer

transfer(contractAddress, receiver, tokenIDs, amounts?, data?, fee?): Promise<Transaction<TransactionResponse>>

Parameters

Name Type
contractAddress AddressType
receiver AddressType
tokenIDs number[]
amounts? number[]
data? string
fee? FeeType

Returns

Promise<Transaction<TransactionResponse>>

Overrides

Nft.transfer

Defined in

evm/lib/nft/EvmNftProvider.ts:32

Clone this wiki locally