OnlineWallet
Extends: Node
Description
This class is used for providing wallet-related online functionality, such as querying for the assets or UTxOs locked at the wallet. These features are possible due to the required [Provider] in its constructor.
This class is used for providing wallet-related online functionality, such as querying for the assets or UTxOs locked at the wallet. These features are possible due to the required [Provider] in its constructor.
Property Descriptions
active
Method Descriptions
total_lovelace
Get the amount of Lovelace locked among all of the wallet's UTxOs
new_tx
Create a TxBuilder.
sign_transaction
get_address
get_utxos
get_payment_pub_key_hash
Signals
- signal got_updated_utxos(utxos):
Sub-classes
SignTxResult
Property Descriptions
value
- Getter:
@value_getter
WARNING: This function may fail! First match on Result.tag or call Result.is_ok.
error
- Getter:
@error_getter
WARNING: This function may fail! First match on Result.tag or call Result._is_err.
OnlineSingleAddressWallet
Property Descriptions
utxos_update_age
utxos_cache_age
time_left
- Getter:
@time_left_getter
timer
utxos
Cached utxos, these can and will be outdated. To get the latest utxos, call OnlineWallet._get_utxos.
Method Descriptions
_init
Construct the wallet by providing a SingleAddressWallet(SingleAddressWallet) (for the network functionality).
update_utxos
Update the cached utxos. The same as OnlineWallet._get_utxos, but without returning the updated utxos.
add_account
Add a new account to the wallet.
switch_account
Switch the active account in the wallet.
send_lovelace_to
Send a lovelace amount to a [param recipient] BECH32 address. This is provided for convenience, as it avoids using the [TxBuilder] interface.
tx_with
See [method Provider.tx_with]