Class: StreamEvmTransactionLog
moralis-monorepo / @moralisweb3/common-streams-utils / StreamEvmTransactionLog
Class: StreamEvmTransactionLog
@moralisweb3/common-streams-utils.StreamEvmTransactionLog
The StreamEvmTransactionLog class is a representation of a transaction log that is returned by the Moralis Stream API
Implements
MoralisDataObject
Table of contents
Methods
Accessors
Constructors
Methods
create
▸ Static create(data): StreamEvmTransactionLog
Create a new instance of StreamEvmTransactionLog
Example
const transactionLog = StreamEvmTransactionLog.create(data);
Parameters
| Name | Type | Description |
|---|---|---|
data | StreamEvmTransactionLogish | the StreamEvmTransactionLogish type |
Returns
an instance of StreamEvmTransactionLog
equals
▸ Static equals(valueA, valueB): boolean
Compares two StreamEvmTransactionLog data. It checks a deep equality check of both values.
Example
StreamEvmTransactionLog.equals(valueA, valueB);
Parameters
| Name | Type | Description |
|---|---|---|
valueA | StreamEvmTransactionLogish | the first StreamEvmTransactionLogish data to compare |
valueB | StreamEvmTransactionLogish | the second StreamEvmTransactionLogish data to compare |
Returns
boolean
true if the values are equal, false otherwise
equals
▸ equals(value): boolean
Compares an StreamEvmTransactionLogish data to this StreamEvmTransactionLog instance.
Example
transactionLog.equals(value);
Parameters
| Name | Type | Description |
|---|---|---|
value | StreamEvmTransactionLogish | the value to compare |
Returns
boolean
true if the value is equal to the current instance, false otherwise
Implementation of
MoralisDataObject.equals
format
▸ format(): StreamEvmTransactionLogJSON
Deprecated
This method will be removed soon. To format the value, use one of the properties.
Returns
Implementation of
MoralisDataObject.format
toJSON
▸ toJSON(): StreamEvmTransactionLogJSON
Converts the StreamEvmTransactionLog instance to a JSON object.
Example
transactionLog.toJSON()
Returns
JSON object of the StreamEvmTransactionLog instance
Implementation of
MoralisDataObject.toJSON
Accessors
address
• get address(): EvmAddress
Returns
EvmAddress
chain
• get chain(): EvmChain
Returns
EvmChain
data
• get data(): string
Returns
string
logIndex
• get logIndex(): number
Returns
number
topic0
• get topic0(): undefined | string
Returns
undefined | string
topic1
• get topic1(): undefined | string
Returns
undefined | string
topic2
• get topic2(): undefined | string
Returns
undefined | string
topic3
• get topic3(): undefined | string
Returns
undefined | string
transactionHash
• get transactionHash(): string
Returns
string
triggers
• get triggers(): undefined | StreamTriggerOutput[]
Returns
undefined | StreamTriggerOutput[]
Constructors
constructor
• new StreamEvmTransactionLog(«destructured»)
Parameters
| Name | Type |
|---|---|
«destructured» | StreamEvmTransactionLogInput |