Utxo
Extends: RefCounted
Description
This class is used for representing Cardano's UTxOs, specifically their identifying attributes (TX hash and output index) but also other useful information such as the Address, [MultiAsset] value and datum information ([UtxoDatumInfo]) which can be very useful in TX tracking and building
This class is used for representing Cardano's UTxOs, specifically their identifying attributes (TX hash and output index) but also other useful information such as the Address, [MultiAsset] value and datum information ([UtxoDatumInfo]) which can be very useful in TX tracking and building
Method Descriptions
_init
WARNING: This is for internal use. Use the [method create] method to safely construct a [Utxo].
tx_hash
Get the TransactionHash.
datum_info
Get any datum information contained in this output.
datum
output_index
Get the index of this specific output in the transaction that produced it.
address
Get the Address that locks this output.
coin
Get the amount of Lovelace locked in this output.
assets
Get all the assets (and respective quantities) locked in this output.
to_out_ref_string
to_script_source
create (static)
Construct a Utxo and other ancillary information.
Sub-classes
CreateResult
Property Descriptions
value
- Getter:
@value_getter
WARNING: This function may fail! First match on tag
or call is_ok
.
error
- Getter:
@error_getter
WARNING: This function may fail! First match on tag
or call is_err
.