Skip to main content

Class: AptosBlock

moralis-monorepo / @moralisweb3/common-aptos-utils / AptosBlock

Class: AptosBlock

@moralisweb3/common-aptos-utils.AptosBlock

Table of contents

Methods

Properties

Methods

create

Static create(input): AptosBlock

Parameters

NameType
inputAptosBlockInput | AptosBlock

Returns

AptosBlock


fromJSON

Static fromJSON(json): AptosBlock

Parameters

NameType
jsonAptosBlockJSON

Returns

AptosBlock


toJSON

toJSON(): AptosBlockJSON

Returns

AptosBlockJSON

Properties

blockHash

Readonly blockHash: string


blockHeight

Readonly blockHeight: string

Description

A string containing a 64-bit unsigned integer.


blockTimestamp

Readonly blockTimestamp: string

Description

A string containing a 64-bit unsigned integer.


firstVersion

Readonly firstVersion: string

Description

A string containing a 64-bit unsigned integer.


lastVersion

Readonly lastVersion: string

Description

A string containing a 64-bit unsigned integer.


transactions

Optional Readonly transactions: AptosBlockTransactionsItemValue[]

Description

List of transactions