def __init__(self): self.hash: UInt256 = UInt256() self.version: int = 0 self.previous_hash: UInt256 = UInt256() self.merkle_root: UInt256 = UInt256() self.timestamp: int = 0 self.index: int = 0 self.primary_index: int = 0 self.next_consensus: UInt160 = UInt160() self.transaction_count: int = 0
def __init__(self): self.hash: UInt256 = UInt256() self.version: int = 0 self.nonce: int = 0 self.sender: UInt160 = UInt160() self.system_fee: int = 0 self.network_fee: int = 0 self.valid_until_block: int = 0 self.script: bytes = b''
def uint256() -> UInt256: return UInt256()
def uint256(arg: str) -> UInt256: return UInt256(arg)
def main() -> UInt256: bytes_value = b'0123456789abcdefghijklmnopqrstuvwxyz' len32 = bytes_value[:32] return UInt256(len32)
def uint256(arg: bytes) -> UInt256: return UInt256(arg)
def uint256(arg: int) -> UInt256: return UInt256(arg)
def main(value: bytes) -> bool: if len(value) == 32: value = UInt256(value) return isinstance(value, UInt256)
def uint256(arg: bytes) -> bytes: return UInt256(arg)
:type tx_index: int :return: the Transaction, if exists. None otherwise """ pass def get_transaction_height(hash_: UInt256) -> int: """ Gets the height of a transaction. :param hash_: hash identifier of the transaction :type hash_: UInt256 :return: height of the transaction """ pass current_hash: UInt256 = UInt256() """ Gets the hash of the current block. :meta hide-value: """ current_index: int = 0 """ Gets the index of the current block. :meta hide-value: """
def main() -> UInt256: return UInt256(256)