Skip to main content

Config

Config Objects

class Config(ConfigProtocol)

A typed view of an on-chain 0x2::config::Config<WriteCap> object, where WriteCap is the phantom type parameter from the Move declaration, not a concrete type.

try_from_bcs

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

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

try_from_object_with_type

@classmethod
def try_from_object_with_type(cls, object: Object,
type_param: TypeTag) -> Config

Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.

id

def id() -> ObjectId

The object's ID.