Class: StreamEvmNftTransfer
moralis-monorepo / @moralisweb3/common-streams-utils / StreamEvmNftTransfer
Class: StreamEvmNftTransfer
@moralisweb3/common-streams-utils.StreamEvmNftTransfer
The StreamEvmNftTransfer class is a representation of a nft transfer (EREC721 or ERC1155) that is returned by the Moralis Stream API
Implements
MoralisDataObject
Table of contents
Methods
Accessors
- amount
- chain
- contract
- from
- logIndex
- operator
- to
- tokenContractType
- tokenId
- tokenName
- tokenSymbol
- transactionHash
- triggers
Constructors
Methods
create
▸ Static
create(data
): StreamEvmNftTransfer
Create a new instance of StreamEvmNftTransferish
Example
const transfer = StreamEvmTransactionish.create(data);
Parameters
Name | Type | Description |
---|---|---|
data | StreamEvmNftTransferish | the StreamEvmNftTransferishish type |
Returns
an instance of StreamEvmNftTransfer
equals
▸ Static
equals(valueA
, valueB
): boolean
Compares two StreamEvmNftTransfer data. It checks a deep equality check of both values.
Example
StreamEvmNftTransfer.equals(valueA, valueB);
Parameters
Name | Type | Description |
---|---|---|
valueA | StreamEvmNftTransferish | the first StreamEvmNftTransferish data to compare |
valueB | StreamEvmNftTransferish | the second StreamEvmNftTransferish data to compare |
Returns
boolean
true if the values are equal, false otherwise
equals
▸ equals(value
): boolean
Compares an StreamEvmNftTransferish data to this StreamEvmNftTransfer instance.
Example
transfer.equals(value);
Parameters
Name | Type | Description |
---|---|---|
value | StreamEvmNftTransferish | the value to compare |
Returns
boolean
true if the value is equal to the current instance, false otherwise
Implementation of
MoralisDataObject.equals
format
▸ format(): StreamEvmNftTransferJSON
Deprecated
This method will be removed soon. To format the value, use one of the properties.
Returns
Implementation of
MoralisDataObject.format
toJSON
▸ toJSON(): StreamEvmNftTransferJSON
Converts the StreamEvmNftTransfer instance to a JSON object.
Example
transfer.toJSON()
Returns
JSON object of the StreamEvmNftTransfer instance
Implementation of
MoralisDataObject.toJSON
Accessors
amount
• get
amount(): number
Returns
number
chain
• get
chain(): EvmChain
Returns
EvmChain
contract
• get
contract(): EvmAddress
Returns
EvmAddress
from
• get
from(): EvmAddress
Returns
EvmAddress
logIndex
• get
logIndex(): number
Returns
number
operator
• get
operator(): undefined
| EvmAddress
Returns
undefined
| EvmAddress
to
• get
to(): EvmAddress
Returns
EvmAddress
tokenContractType
• get
tokenContractType(): string
Returns
string
tokenId
• get
tokenId(): string
Returns
string
tokenName
• get
tokenName(): string
Returns
string
tokenSymbol
• get
tokenSymbol(): string
Returns
string
transactionHash
• get
transactionHash(): string
Returns
string
triggers
• get
triggers(): undefined
| StreamTriggerOutput
[]
Returns
undefined
| StreamTriggerOutput
[]
Constructors
constructor
• new StreamEvmNftTransfer(data
)
Parameters
Name | Type |
---|---|
data | StreamEvmNftTransferInput |