type

class Event

Bases: object

Describes an action that happened in the blockchain.

class UInt160(arg: Union[bytes, int] = 0)

Bases: bytes

Represents a 160-bit unsigned integer.

class UInt256(arg: Union[bytes, int] = 0)

Bases: bytes

Represents a 256-bit unsigned integer.

class ECPoint(arg: bytes)

Bases: bytes

Represents a coordinate pair for elliptic curve cryptography (ECC) structures.

to_script_hash()bytes

Converts a data to a script hash.

Returns

the script hash of the data

Return type

bytes

class Address

Bases: str

A class used only to indicate that a parameter or return on the manifest should be treated as an Address. It’s a subclass of str and it doesn’t implement new properties or methods.

class BlockHash(arg: Union[bytes, int] = 0)

Bases: boa3.builtin.type.UInt256

A class used only to indicate that a parameter or return on the manifest should be treated as a BlockHash. It’s a subclass of UInt256 and it doesn’t implement new properties or methods.

class PublicKey(arg: bytes)

Bases: boa3.builtin.type.ECPoint

A class used only to indicate that a parameter or return on the manifest should be treated as a PublicKey. It’s a subclass of ECPoint and it doesn’t implement new properties or methods.

class ScriptHash(arg: Union[bytes, int] = 0)

Bases: boa3.builtin.type.UInt160

A class used only to indicate that a parameter or return on the manifest should be treated as a ScriptHash. It’s a subclass of UInt160 and it doesn’t implement new properties or methods.

class ScriptHashLittleEndian(arg: Union[bytes, int] = 0)

Bases: boa3.builtin.type.UInt160

A class used only to indicate that a parameter or return on the manifest should be treated as a ScriptHashLittleEndian. It’s a subclass of UInt160 and it doesn’t implement new properties or methods.

class TransactionId(arg: Union[bytes, int] = 0)

Bases: boa3.builtin.type.UInt256

A class used only to indicate that a parameter or return on the manifest should be treated as a TransactionId. It’s a subclass of UInt256 and it doesn’t implement new properties or methods.

Subpackages

helper

to_bool(value: bytes)bool

Return a bytes value to the boolean it represents.

to_bytes(value: Union[str, int])bytes

Converts a str or integer value to an array of bytes

to_int(value: bytes)int

Converts a bytes value to the integer it represents.

to_str(value: bytes)str

Converts a bytes value to a string.