Skip to main content

StakedIota

StakedIota Objects

class StakedIota(StakedIotaProtocol)

A typed view of an on-chain 0x3::staking_pool::StakedIota object.

try_from_bcs

@classmethod
def try_from_bcs(cls, bytes: bytes) -> StakedIota

Decode from BCS bytes, without validating the on-chain type tag.

try_from_object

@classmethod
def try_from_object(cls, object: Object) -> StakedIota

Decode from an on-chain object, validating its Move type tag.

id

def id() -> ObjectId

The object's ID.

principal

def principal() -> int

Staked principal in nanos.