Staking

class Staking(config: AptosConfig) : Staking

Staking API namespace. This class provides functionality to reading and writing staking information.

Constructors

Link copied to clipboard
constructor(config: AptosConfig)

Functions

Link copied to clipboard
open suspend override fun getNumberOfDelegators(poolAddress: AccountAddressInput, minimumLedgerVersion: Long?): Option<NumberOfDelegators>

Queries current number of delegators in a pool. Throws an error if the pool is not found.