get Object
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:
Ok
: Containing a nullable GetObjectQuery.Data object with the object's details.Err
: Containing a SuiError object with a list of GraphQLErrors.
Parameters
id
The unique ID of the object to fetch.
options
The options specifying which fields of the object to include in the response.