Class: EvmTrade
moralis-monorepo / @moralisweb3/common-evm-utils / EvmTrade
Class: EvmTrade
@moralisweb3/common-evm-utils.EvmTrade
Table of contents
Methods
Properties
- blockHash
- blockNumber
- blockTimestamp
- buyerAddress
- marketplaceAddress
- price
- priceTokenAddress
- sellerAddress
- tokenAddress
- tokenIds
- transactionHash
- transactionIndex
Methods
create
▸ Static
create(input
): EvmTrade
Parameters
Name | Type |
---|---|
input | EvmTradeInput | EvmTrade |
Returns
fromJSON
▸ Static
fromJSON(json
): EvmTrade
Parameters
Name | Type |
---|---|
json | EvmTradeJSON |
Returns
toJSON
▸ toJSON(): EvmTradeJSON
Returns
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