Pay to ScriptHash Script

class blocksci.PayToScriptHashScript

Extra data about pay to script hash address

address

Bitcoin address string

balance(self: blocksci.blocksci_interface.Script, height: int=0) → int

Calculates the balance held by this script at the height (Defaults to the full chain)

first_tx

Get the first transaction that was sent to this address

in_txes(self: blocksci.blocksci_interface.Script) → List[blocksci::Transaction]

Returns a list of all transaction where this script was an input

ins(self: blocksci.blocksci_interface.Script) → List[blocksci::Input]

Returns a list of all inputs spent from this script

out_txes(self: blocksci.blocksci_interface.Script) → List[blocksci::Transaction]

Returns a list of all transaction where this script was an output

outs(self: blocksci.blocksci_interface.Script) → List[blocksci::Output]

Returns a list of all outputs sent to this script

raw_address

The 160 bit P2SH address hash

revealed_tx

The transaction where this wrapped script was first revealed

script

Returns the script data associated with this script

txes(self: blocksci.blocksci_interface.Script) → List[blocksci::Transaction]

Returns a list of all transactions involving this script

wrapped_address

The address inside this P2SH address

wrapped_script

The script inside this P2SH address