getDynamicFieldObject

abstract suspend fun getDynamicFieldObject(parentId: String, name: DynamicFieldName): Result<GetDynamicFieldObjectQuery.Data?, SuiError>

Fetches an object that is stored as a dynamic field on a parent object.

Return

A Result which is either:

  • Ok: Containing a nullable GetDynamicFieldObjectQuery.Data object with the dynamic field's details.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

parentId

The ID of the parent object that owns the dynamic field.

name

The name of the dynamic field, which includes its type and value.