Skip to main content

Class: StreamEvmInternalTransaction

moralis-monorepo / @moralisweb3/common-streams-utils / StreamEvmInternalTransaction

Class: StreamEvmInternalTransaction

@moralisweb3/common-streams-utils.StreamEvmInternalTransaction

The StreamEvmInternalTransaction class is a representation of an internal transaction that is returned by the Moralis Stream API

Implements

  • MoralisDataObject

Table of contents

Methods

Accessors

Constructors

Methods

create

Static create(data): StreamEvmInternalTransaction

Create a new instance of StreamEvmInternalTransactionish

Example

const transaction = StreamEvmTransactionish.create(data);

Parameters

NameTypeDescription
dataStreamEvmInternalTransactionishthe StreamEvmInternalTransactionishish type

Returns

StreamEvmInternalTransaction

an instance of StreamEvmInternalTransaction


equals

Static equals(valueA, valueB): boolean

Compares two StreamEvmInternalTransaction data. It checks a deep equality check of both values.

Example

 StreamEvmInternalTransaction.equals(valueA, valueB);

Parameters

NameTypeDescription
valueAStreamEvmInternalTransactionishthe first StreamEvmInternalTransactionish data to compare
valueBStreamEvmInternalTransactionishthe second StreamEvmInternalTransactionish data to compare

Returns

boolean

true if the values are equal, false otherwise


equals

equals(value): boolean

Compares an StreamEvmInternalTransactionish data to this StreamEvmInternalTransaction instance.

Example

evmInternalTransaction.equals(value);

Parameters

NameTypeDescription
valueStreamEvmInternalTransactionishthe value to compare

Returns

boolean

true if the value is equal to the current instance, false otherwise

Implementation of

MoralisDataObject.equals


format

format(): StreamEvmInternalTransactionJSON

Deprecated

This method will be removed soon. To format the value, use one of the properties.

Returns

StreamEvmInternalTransactionJSON

Implementation of

MoralisDataObject.format


toJSON

toJSON(): StreamEvmInternalTransactionJSON

Converts the StreamEvmInternalTransaction instance to a JSON object.

Example

evmInternalTransaction.toJSON()

Returns

StreamEvmInternalTransactionJSON

JSON object of the StreamEvmInternalTransaction instance

Implementation of

MoralisDataObject.toJSON

Accessors

chain

get chain(): EvmChain

Returns

EvmChain


from

get from(): undefined | EvmAddress

Returns

undefined | EvmAddress


gas

get gas(): undefined | BigNumber

Returns

undefined | BigNumber


to

get to(): undefined | EvmAddress

Returns

undefined | EvmAddress


transactionHash

get transactionHash(): string

Returns

string


triggers

get triggers(): undefined | StreamTriggerOutput[]

Returns

undefined | StreamTriggerOutput[]


value

get value(): undefined | BigNumber

Returns

undefined | BigNumber

Constructors

constructor

new StreamEvmInternalTransaction(data)

Parameters

NameType
dataStreamEvmInternalTransactionInput