getOwnedObjects

open suspend override fun getOwnedObjects(owner: AccountAddress, limit: Int?, cursor: String?, options: 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 ObjectDataOptions specifying which fields of the objects to include in the response.