Skip to main content

BasicOutput

BasicOutput Objects

class BasicOutput(BasicOutputProtocol)

A typed view of an on-chain 0x107a::basic_output::BasicOutput<IOTA> object.

try_from_bcs

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

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

try_from_object

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

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

balance

def balance() -> int

IOTA balance held by the output, in nanos.

id

def id() -> ObjectId

The object's ID.

native_tokens_bag_id

def native_tokens_bag_id() -> ObjectId

Object ID of the Bag of native tokens. Use the GraphQL client to list dynamic fields if you need to enumerate the tokens.