CTxOut¶
- class blsct.CTxOut(obj: Any = None)¶
Represents a transaction output in a constructed confidential transaction. Also known as CTxOut on the C++ side.
For code examples, see the ctx.py class documentation.
- classmethod deserialize(hex: str) Self¶
Create a CTxOut from a hexadecimal string.
- get_range_proof() RangeProof¶
Get the range proof of the transaction output.
- get_script_pub_key_hex() str¶
Get the whole scriptPubKey in hex. Unlike get_script_pub_key, which holds a fixed-size script, it is not cut off, so a staked commitment’s script (OP_STAKED_COMMITMENT … OP_TRUE) reads in full.
- get_value() int¶
Get the value of the transaction output.
- get_vector_predicate() str¶
Get the vector predicate of the transaction output in hex.
- get_view_tag() int¶
Get the view tag of the transaction output.
- serialize() str¶
Serialize the CTxOut object to a hexadecimal string.