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_blinding_key() → Point

Get the blinding key of the transaction output, a public point.

get_ephemeral_key() → Point

Get the ephemeral key of the transaction output.

get_range_proof() → RangeProof

Get the range proof of the transaction output.

get_script_pub_key() → Script

Get the scriptPubKey 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_spending_key() → Point

Get the spending key of the transaction output, a public point.

get_token_id() → TokenId

Get the token ID of the transaction output.

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.