getStakes

open suspend override fun getStakes(owner: AccountAddress, limit: Int?, cursor: String?): Result<GetStakesQuery.Data?, SuiError>

Fetches all StakedSui objects owned by a specific address.

Return

A Result which is either:

Parameters

owner

The AccountAddress that owns the staked objects.

limit

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

cursor

An optional cursor string for pagination.