Simple¶
Riemann offers a simplified transaction builder that accepts human-readable inputs, i.e. integers and strings instead of serialized LE numbers and bytestrings.
-
riemann.simple.outpoint(tx_id, index, tree=None)¶ Some overloads are not documented by Sphinx
hex_str, int, int -> Outpoint accepts block explorer txid string
-
riemann.simple.output(value: int, address: str) → riemann.tx.tx.TxOut¶ int, str -> TxOut accepts base58 or bech32 addresses
-
riemann.simple.unsigned_input(outpoint, sequence=4294967294)¶ Some overloads are not documented by Sphinx
Outpoint, byte-like, int -> TxIn
-
riemann.simple.unsigned_legacy_tx(tx_ins, tx_outs, **kwargs)¶ Create an unsigned transaction Use this to generate sighashes for unsigned TxIns Hint: set version to 2 if using sequence number relative time locks
- Parameters
list (tx_outs) – list of transaction inputs
list – list of transaction outputs
**kwargs –
version (int) – transaction version number
lock_time (hex) – transaction locktime
expiry (int) – overwinter expiry time
tx_joinsplits (list) – list of joinsplits transactions
joinsplit_pubkey (bytes) – joinsplit public key
joinsplit_sig (bytes) – joinsplit signature
- Returns
unsigned transaction
- Return type
(Tx instance)
-
riemann.simple.unsigned_witness_tx(tx_ins, tx_outs, **kwargs)¶ Create an unsigned segwit transaction Create an unsigned segwit transaction Use this to generate sighashes for unsigned TxIns Hint: set version to 2 if using sequence number relative time locks
- Parameters
list (tx_outs) – list of transaction inputs
list – list of transaction outputs
**kwargs –
version (int) – transaction version number
locktime (hex) – transaction locktime
- Returns
unsigned transaction with empty witness
- Return type
(Tx instance)