getObject

abstract suspend fun getObject(id: String, options: ObjectDataOptions = ObjectDataOptions()): Result<GetObjectQuery.Data?, SuiError>

Fetches the details of a specific object by its ID.

Return

A Result which is either:

Parameters

id

The unique ID of the object to fetch.

options

The options specifying which fields of the object to include in the response.