getOwnedObjects

abstract suspend fun getOwnedObjects(owner: AccountAddress, limit: Int? = null, cursor: String? = null, options: ObjectDataOptions = ObjectDataOptions()): Result<GetOwnedObjectsQuery.Data?, SuiError>

Fetches a paginated list of objects owned by a specific address.

Return

A Result which is either:

  • Ok: Containing a nullable GetOwnedObjectsQuery.Data object with a list of objects and a pagination cursor.

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

Parameters

owner

The AccountAddress of the owner.

limit

An optional integer to specify the maximum number of objects to return per page.

cursor

An optional cursor string for pagination.

options

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