aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Type Alias MoveStructOnChain<Fields>

    MoveStructOnChain: Fields | { fields: Fields; type?: AnyObjectType }

    A nested Move struct as it arrives from either fullnode protocol.

    gRPC's json object view returns nested structs bare; JSON-RPC wrapped them in a { type, fields } envelope. Read one through GrpcCasting.unwrapStructField, which resolves either arm.

    The envelope's type is not present on the gRPC arm. When a caster needs the nested struct's Move type, it must take it from the enclosing object's type parameters through Helpers.getObjectType.

    Type Parameters

    • Fields

    Type Declaration