CTxIn

class blsct.CTxIn(obj: Any = None)

Represents a transaction input in a constructed confidential transaction. Also known as CTxIn on the C++ side.

For code examples, see the ctx.py class documentation.

classmethod deserialize(hex: str) → Self

Create a CTxIn from a hexadecimal string.

get_prev_out_hash() → CTxId

Get the transaction ID of the previous output being spent.

get_script_sig() → Script

Get the scriptSig used to unlock the previous output.

get_script_witness() → Script

Get the scriptWitness for the transaction input.

get_sequence() → int

Get the sequence field of the transaction input.

serialize() → str

Serialize the CTxIn object to a hexadecimal string.