UtxoEntries (Class)¶
A collection of UTXO entry references.
Provides methods for managing and querying multiple UTXOs.
__eq__
¶
__eq__(other: UtxoEntries) -> bool
Equality comparison.
| PARAMETER | DESCRIPTION |
|---|---|
other
|
Another UtxoEntries collection to compare against.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if both collections contain identical entries in the same order.
TYPE:
|
__repr__
¶
The detailed string representation.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The UtxoEntries as a repr string.
TYPE:
|
amount
¶
Calculate the total amount of all UTXOs.
| RETURNS | DESCRIPTION |
|---|---|
int
|
The sum of all UTXO values in sompi.
TYPE:
|
to_dict
¶
Get a dictionary representation of the UtxoEntries. Note that this creates a second separate object on the Python heap.
| RETURNS | DESCRIPTION |
|---|---|
dict
|
the UtxoEntries in dictionary form.
TYPE:
|