Skip to main content

Class: EvmTrade

moralis-monorepo / @moralisweb3/common-evm-utils / EvmTrade

Class: EvmTrade

@moralisweb3/common-evm-utils.EvmTrade

Table of contents

Methods

Properties

Methods

create

Static create(input): EvmTrade

Parameters

NameType
inputEvmTradeInput | EvmTrade

Returns

EvmTrade


fromJSON

Static fromJSON(json): EvmTrade

Parameters

NameType
jsonEvmTradeJSON

Returns

EvmTrade


toJSON

toJSON(): EvmTradeJSON

Returns

EvmTradeJSON

Properties

blockHash

Readonly blockHash: string

Description

The block hash


blockNumber

Readonly blockNumber: BigNumber

Description

The block number of the transaction


blockTimestamp

Readonly blockTimestamp: Date

Description

The block timestamp


buyerAddress

Readonly buyerAddress: EvmAddress

Description

The address that bought the NFT


marketplaceAddress

Readonly marketplaceAddress: EvmAddress

Description

The address of the contract that traded the NFT


price

Readonly price: EvmNative

Description

The value that was sent in the transaction (ETH/BNB/etc..)


priceTokenAddress

Optional Readonly priceTokenAddress: EvmAddress

Description

The address of the token used to pay for the NFT


sellerAddress

Readonly sellerAddress: EvmAddress

Description

The address that sold the NFT


tokenAddress

Readonly tokenAddress: EvmAddress

Description

The address of the NFT contract


tokenIds

Readonly tokenIds: string[]

Description

The token ID(s) traded


transactionHash

Readonly transactionHash: string

Description

The transaction hash


transactionIndex

Readonly transactionIndex: number

Description

The transaction index