Functions
bool_from_bcs
def bool_from_bcs(input: bytes) -> bool
Create a bool from BCS encoded bytes.
bool_from_json
def bool_from_json(input: str) -> bool
Create a bool from JSON encoded string.
bool_to_bcs
def bool_to_bcs(input: bool) -> bytes
Convert this bool to BCS encoded bytes.
bool_to_json
def bool_to_json(input: bool) -> str
Convert this bool to JSON encoded string.
changed_object_from_bcs
def changed_object_from_bcs(bcs: bytes) -> ChangedObject
Create this type from BCS encoded bytes.
changed_object_from_json
def changed_object_from_json(json: str) -> ChangedObject
Create this type from a JSON encoded string.
command_argument_error_from_bcs
def command_argument_error_from_bcs(bcs: bytes) -> CommandArgumentError
Create this type from BCS encoded bytes.
command_argument_error_from_json
def command_argument_error_from_json(json: str) -> CommandArgumentError
Create this type from a JSON encoded string.
deny_rule_set_from_bcs
def deny_rule_set_from_bcs(bcs: bytes) -> DenyRuleSet
Create this type from BCS encoded bytes.
deny_rule_set_from_json
def deny_rule_set_from_json(json: str) -> DenyRuleSet
Create this type from a JSON encoded string.
end_of_epoch_data_from_bcs
def end_of_epoch_data_from_bcs(bcs: bytes) -> EndOfEpochData
Create this type from BCS encoded bytes.
end_of_epoch_data_from_json
def end_of_epoch_data_from_json(json: str) -> EndOfEpochData
Create this type from a JSON encoded string.
event_from_bcs
def event_from_bcs(bcs: bytes) -> Event
Create this type from BCS encoded bytes.
event_from_json
def event_from_json(json: str) -> Event
Create this type from a JSON encoded string.
execution_error_from_bcs
def execution_error_from_bcs(bcs: bytes) -> ExecutionError
Create this type from BCS encoded bytes.
execution_error_from_json
def execution_error_from_json(json: str) -> ExecutionError
Create this type from a JSON encoded string.
execution_status_from_bcs
def execution_status_from_bcs(bcs: bytes) -> ExecutionStatus
Create this type from BCS encoded bytes.
execution_status_from_json
def execution_status_from_json(json: str) -> ExecutionStatus
Create this type from a JSON encoded string.
gas_cost_summary_from_bcs
def gas_cost_summary_from_bcs(bcs: bytes) -> GasCostSummary
Create this type from BCS encoded bytes.
gas_cost_summary_from_json
def gas_cost_summary_from_json(json: str) -> GasCostSummary
Create this type from a JSON encoded string.
gas_payment_from_bcs
def gas_payment_from_bcs(bcs: bytes) -> GasPayment
Create this type from BCS encoded bytes.
gas_payment_from_json
def gas_payment_from_json(json: str) -> GasPayment
Create this type from a JSON encoded string.
generate_mnemonic
def generate_mnemonic(word_count: typing.Optional[MnemonicLength]) -> str
Generate a new BIP-39 mnemonic in English. Supported word counts are 12 and 24 (default).
i16_from_bcs
def i16_from_bcs(input: bytes) -> int
Create a i16 from BCS encoded bytes.
i16_from_json
def i16_from_json(input: str) -> int
Create a i16 from JSON encoded string.
i16_to_bcs
def i16_to_bcs(input: int) -> bytes
Convert this i16 to BCS encoded bytes.
i16_to_json
def i16_to_json(input: int) -> str
Convert this i16 to JSON encoded string.
i32_from_bcs
def i32_from_bcs(input: bytes) -> int
Create a i32 from BCS encoded bytes.
i32_from_json
def i32_from_json(input: str) -> int
Create a i32 from JSON encoded string.
i32_to_bcs
def i32_to_bcs(input: int) -> bytes
Convert this i32 to BCS encoded bytes.
i32_to_json
def i32_to_json(input: int) -> str
Convert this i32 to JSON encoded string.
i64_from_bcs
def i64_from_bcs(input: bytes) -> int
Create a i64 from BCS encoded bytes.
i64_from_json
def i64_from_json(input: str) -> int
Create a i64 from JSON encoded string.
i64_to_bcs
def i64_to_bcs(input: int) -> bytes
Convert this i64 to BCS encoded bytes.
i64_to_json
def i64_to_json(input: int) -> str
Convert this i64 to JSON encoded string.
i8_from_bcs
def i8_from_bcs(input: bytes) -> int
Create a i8 from BCS encoded bytes.
i8_from_json
def i8_from_json(input: str) -> int
Create a i8 from JSON encoded string.
i8_to_bcs
def i8_to_bcs(input: int) -> bytes
Convert this i8 to BCS encoded bytes.
i8_to_json
def i8_to_json(input: int) -> str
Convert this i8 to JSON encoded string.
id_operation_from_bcs
def id_operation_from_bcs(bcs: bytes) -> IdOperation
Create this type from BCS encoded bytes.
id_operation_from_json
def id_operation_from_json(json: str) -> IdOperation
Create this type from a JSON encoded string.
move_location_from_bcs
def move_location_from_bcs(bcs: bytes) -> MoveLocation
Create this type from BCS encoded bytes.
move_location_from_json
def move_location_from_json(json: str) -> MoveLocation
Create this type from a JSON encoded string.
move_struct_from_bcs
def move_struct_from_bcs(bcs: bytes) -> MoveStruct
Create this type from BCS encoded bytes.
move_struct_from_json
def move_struct_from_json(json: str) -> MoveStruct
Create this type from a JSON encoded string.
object_in_from_bcs
def object_in_from_bcs(bcs: bytes) -> ObjectIn
Create this type from BCS encoded bytes.
object_in_from_json
def object_in_from_json(json: str) -> ObjectIn
Create this type from a JSON encoded string.
object_out_from_bcs
def object_out_from_bcs(bcs: bytes) -> ObjectOut
Create this type from BCS encoded bytes.
object_out_from_json
def object_out_from_json(json: str) -> ObjectOut
Create this type from a JSON encoded string.
object_reference_from_bcs
def object_reference_from_bcs(bcs: bytes) -> ObjectReference
Create this type from BCS encoded bytes.
object_reference_from_json
def object_reference_from_json(json: str) -> ObjectReference
Create this type from a JSON encoded string.
package_upgrade_error_from_bcs
def package_upgrade_error_from_bcs(bcs: bytes) -> PackageUpgradeError
Create this type from BCS encoded bytes.
package_upgrade_error_from_json
def package_upgrade_error_from_json(json: str) -> PackageUpgradeError
Create this type from a JSON encoded string.
randomness_state_update_from_bcs
def randomness_state_update_from_bcs(bcs: bytes) -> RandomnessStateUpdate
Create this type from BCS encoded bytes.
randomness_state_update_from_json
def randomness_state_update_from_json(json: str) -> RandomnessStateUpdate
Create this type from a JSON encoded string.
signed_transaction_from_bcs
def signed_transaction_from_bcs(bcs: bytes) -> SignedTransaction
Create this type from BCS encoded bytes.
signed_transaction_from_json
def signed_transaction_from_json(json: str) -> SignedTransaction
Create this type from a JSON encoded string.
string_from_bcs
def string_from_bcs(input: bytes) -> str
Create a String from BCS encoded bytes.
string_from_json
def string_from_json(input: str) -> str
Create a String from JSON encoded string.
string_to_bcs
def string_to_bcs(input: str) -> bytes
Convert this String to BCS encoded bytes.
string_to_json
def string_to_json(input: str) -> str
Convert this String to JSON encoded string.
transaction_deny_rules_update_from_bcs
def transaction_deny_rules_update_from_bcs(
bcs: bytes) -> TransactionDenyRulesUpdate
Create this type from BCS encoded bytes.
transaction_deny_rules_update_from_json
def transaction_deny_rules_update_from_json(
json: str) -> TransactionDenyRulesUpdate
Create this type from a JSON encoded string.
transaction_expiration_from_bcs
def transaction_expiration_from_bcs(bcs: bytes) -> TransactionExpiration
Create this type from BCS encoded bytes.
transaction_expiration_from_json
def transaction_expiration_from_json(json: str) -> TransactionExpiration
Create this type from a JSON encoded string.
type_argument_error_from_bcs
def type_argument_error_from_bcs(bcs: bytes) -> TypeArgumentError
Create this type from BCS encoded bytes.
type_argument_error_from_json
def type_argument_error_from_json(json: str) -> TypeArgumentError
Create this type from a JSON encoded string.
type_origin_from_bcs
def type_origin_from_bcs(bcs: bytes) -> TypeOrigin
Create this type from BCS encoded bytes.
type_origin_from_json
def type_origin_from_json(json: str) -> TypeOrigin
Create this type from a JSON encoded string.
u16_from_bcs
def u16_from_bcs(input: bytes) -> int
Create a u16 from BCS encoded bytes.
u16_from_json
def u16_from_json(input: str) -> int
Create a u16 from JSON encoded string.
u16_to_bcs
def u16_to_bcs(input: int) -> bytes
Convert this u16 to BCS encoded bytes.
u16_to_json
def u16_to_json(input: int) -> str
Convert this u16 to JSON encoded string.
u32_from_bcs
def u32_from_bcs(input: bytes) -> int
Create a u32 from BCS encoded bytes.
u32_from_json
def u32_from_json(input: str) -> int
Create a u32 from JSON encoded string.
u32_to_bcs
def u32_to_bcs(input: int) -> bytes
Convert this u32 to BCS encoded bytes.
u32_to_json
def u32_to_json(input: int) -> str
Convert this u32 to JSON encoded string.
u64_from_bcs
def u64_from_bcs(input: bytes) -> int
Create a u64 from BCS encoded bytes.
u64_from_json
def u64_from_json(input: str) -> int
Create a u64 from JSON encoded string.
u64_to_bcs
def u64_to_bcs(input: int) -> bytes
Convert this u64 to BCS encoded bytes.
u64_to_json
def u64_to_json(input: int) -> str
Convert this u64 to JSON encoded string.
u8_from_bcs
def u8_from_bcs(input: bytes) -> int
Create a u8 from BCS encoded bytes.
u8_from_json
def u8_from_json(input: str) -> int
Create a u8 from JSON encoded string.
u8_to_bcs
def u8_to_bcs(input: int) -> bytes
Convert this u8 to BCS encoded bytes.
u8_to_json
def u8_to_json(input: int) -> str
Convert this u8 to JSON encoded string.
unchanged_shared_kind_from_bcs
def unchanged_shared_kind_from_bcs(bcs: bytes) -> UnchangedSharedKind
Create this type from BCS encoded bytes.
unchanged_shared_kind_from_json
def unchanged_shared_kind_from_json(json: str) -> UnchangedSharedKind
Create this type from a JSON encoded string.
unchanged_shared_object_from_bcs
def unchanged_shared_object_from_bcs(bcs: bytes) -> UnchangedSharedObject
Create this type from BCS encoded bytes.
unchanged_shared_object_from_json
def unchanged_shared_object_from_json(json: str) -> UnchangedSharedObject
Create this type from a JSON encoded string.
upgrade_info_from_bcs
def upgrade_info_from_bcs(bcs: bytes) -> UpgradeInfo
Create this type from BCS encoded bytes.
upgrade_info_from_json
def upgrade_info_from_json(json: str) -> UpgradeInfo
Create this type from a JSON encoded string.
validator_committee_member_from_bcs
def validator_committee_member_from_bcs(
bcs: bytes) -> ValidatorCommitteeMember
Create this type from BCS encoded bytes.
validator_committee_member_from_json
def validator_committee_member_from_json(
json: str) -> ValidatorCommitteeMember
Create this type from a JSON encoded string.