Skip to main content

Class: AptosModuleStruct

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

Class: AptosModuleStruct

@moralisweb3/common-aptos-utils.AptosModuleStruct

Table of contents

Methods

Properties

Methods

create

Static create(input): AptosModuleStruct

Parameters

NameType
inputAptosModuleStructInput | AptosModuleStruct

Returns

AptosModuleStruct


fromJSON

Static fromJSON(json): AptosModuleStruct

Parameters

NameType
jsonAptosModuleStructJSON

Returns

AptosModuleStruct


toJSON

toJSON(): AptosModuleStructJSON

Returns

AptosModuleStructJSON

Properties

abilities

Readonly abilities: string[]

Description

Abilities associated with the struct


fields

Readonly fields: AptosModuleStructField[]

Description

Fields associated with the struct


genericTypeParams

Readonly genericTypeParams: AptosGenericTypeParam[]

Description

Generic types associated with the struct


isNative

Readonly isNative: boolean

Description

Whether the struct is a native struct of Move


name

Readonly name: string

Description

Name of the struct