Contract

__init__ Module

class pycoin.networks.Contract.Contract(script_info, network)[source]

Bases: object

A script that encumbers coins.

address()[source]

Return a string with the address for this script (or None if this script does have a corresponding address).

disassemble()[source]

Return a text string of the disassembly of the script.

hash160()[source]

Return a 20-byte hash corresponding to this script (or None if not applicable).

info()[source]
output()[source]

Return a 20-byte hash corresponding to this script (or None if not applicable).

script()[source]

Return a bytes with a binary image of the script.