Skip to content

UtxoEntry (Class)

An unspent transaction output (UTXO).

Represents a spendable output from a previous transaction. Contains information about the amount, locking script, and block position.

address property

address: Optional[Address]

The address associated with this UTXO.

RETURNS DESCRIPTION
Optional[Address]

Address | None: The address, or None if not available.

amount property

amount: int

The amount in sompi (1 KAS = 100,000,000 sompi).

RETURNS DESCRIPTION
int

The UTXO value in sompi.

TYPE: int

block_daa_score property

block_daa_score: int

The DAA score of the block containing this UTXO.

RETURNS DESCRIPTION
int

The block DAA score.

TYPE: int

is_coinbase property

is_coinbase: bool

Whether this UTXO is from a coinbase transaction.

RETURNS DESCRIPTION
bool

True if this is a coinbase UTXO.

TYPE: bool

outpoint property

The outpoint identifying this UTXO.

RETURNS DESCRIPTION
TransactionOutpoint

The transaction outpoint reference.

TYPE: TransactionOutpoint

script_public_key property

script_public_key: ScriptPublicKey

The locking script for this UTXO.

RETURNS DESCRIPTION
ScriptPublicKey

The script public key.

TYPE: ScriptPublicKey

__eq__

__eq__(other: UtxoEntry) -> bool