Skip to main content

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

NameTypeDescription
dataStreamEvmTransactionLogishthe StreamEvmTransactionLogish type

Returns

StreamEvmTransactionLog

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

NameTypeDescription
valueAStreamEvmTransactionLogishthe first StreamEvmTransactionLogish data to compare
valueBStreamEvmTransactionLogishthe 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

NameTypeDescription
valueStreamEvmTransactionLogishthe 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

StreamEvmTransactionLogJSON

Implementation of

MoralisDataObject.format


toJSON

toJSON(): StreamEvmTransactionLogJSON

Converts the StreamEvmTransactionLog instance to a JSON object.

Example

transactionLog.toJSON()

Returns

StreamEvmTransactionLogJSON

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

NameType
«destructured»StreamEvmTransactionLogInput