Skip to main content

Class: StreamEvmTransaction

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

Class: StreamEvmTransaction

@moralisweb3/common-streams-utils.StreamEvmTransaction

The StreamEvmTransaction class is a representation of a transaction that is returned by the Moralis Stream API

Implements

  • MoralisDataObject

Table of contents

Methods

Accessors

Constructors

Methods

create

Static create(data): StreamEvmTransaction

Create a new instance of StreamEvmTransactionish

Example

const transaction = StreamEvmTransactionish.create(data);

Parameters

NameTypeDescription
dataStreamEvmTransactionishthe StreamEvmTransactionishish type

Returns

StreamEvmTransaction

an instance of StreamEvmTransaction


equals

Static equals(valueA, valueB): boolean

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

Example

 StreamEvmTransaction.equals(valueA, valueB);

Parameters

NameTypeDescription
valueAStreamEvmTransactionishthe first StreamEvmTransactionish data to compare
valueBStreamEvmTransactionishthe second StreamEvmTransactionish data to compare

Returns

boolean

true if the values are equal, false otherwise


equals

equals(value): boolean

Compares an StreamEvmTransactionish data to this StreamEvmTransaction instance.

Example

transaction.equals(value);

Parameters

NameTypeDescription
valueStreamEvmTransactionishthe value to compare

Returns

boolean

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

Implementation of

MoralisDataObject.equals


format

format(): StreamEvmTransactionJSON

Deprecated

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

Returns

StreamEvmTransactionJSON

Implementation of

MoralisDataObject.format


toJSON

toJSON(): StreamEvmTransactionJSON

Converts the StreamEvmTransaction instance to a JSON object.

Example

transaction.toJSON()

Returns

StreamEvmTransactionJSON

JSON object of the StreamEvmTransaction instance

Implementation of

MoralisDataObject.toJSON

Accessors

chain

get chain(): EvmChain

Returns

EvmChain


fromAddress

get fromAddress(): EvmAddress

Returns

EvmAddress


gas

get gas(): undefined | BigNumber

Returns

undefined | BigNumber


gasPrice

get gasPrice(): undefined | BigNumber

Returns

undefined | BigNumber


hash

get hash(): string

Returns

string


input

get input(): undefined | string

Returns

undefined | string


nonce

get nonce(): undefined | BigNumber

Returns

undefined | BigNumber


r

get r(): undefined | string

Returns

undefined | string


receiptContractAddress

get receiptContractAddress(): undefined | EvmAddress

Returns

undefined | EvmAddress


receiptCumulativeGasUsed

get receiptCumulativeGasUsed(): undefined | BigNumber

Returns

undefined | BigNumber


receiptGasUsed

get receiptGasUsed(): undefined | BigNumber

Returns

undefined | BigNumber


receiptRoot

get receiptRoot(): undefined | string

Returns

undefined | string


receiptStatus

get receiptStatus(): undefined | number

Returns

undefined | number


s

get s(): undefined | string

Returns

undefined | string


signature

get signature(): undefined | EvmSignature

Returns

undefined | EvmSignature


toAddress

get toAddress(): undefined | EvmAddress

Returns

undefined | EvmAddress


transactionIndex

get transactionIndex(): number

Returns

number


triggers

get triggers(): undefined | StreamTriggerOutput[]

Returns

undefined | StreamTriggerOutput[]


type

get type(): undefined | number

Returns

undefined | number


v

get v(): undefined | number

Returns

undefined | number


value

get value(): undefined | BigNumber

Returns

undefined | BigNumber

Constructors

constructor

new StreamEvmTransaction(«destructured»)

Parameters

NameType
«destructured»StreamEvmTransactionInput