BtcClientImpl class
Bitcoin support: balance, unspent outputs, fee estimates and broadcast against an esplora-compatible API. Sending is assembled per platform (PSBT) and broadcast through this domain. Instances share the root client's state. NOTE: not yet thread-safe.
- Implemented types
Properties
Methods
-
availableNetworks(
) → List< BtcNetwork> -
Returns network providers built from dashboard metadata and host configuration.
override
-
broadcastTransaction(
String signedTransactionHex, [BtcNetwork? network]) → Future< String> -
Broadcasts a signed transaction and returns its transaction ID.
override
-
configureNetworks(
List< BtcNetwork> networks) → void -
Sets host REST endpoints. The first host network remains the default. Dashboard networks are resolved when used.
override
-
getBalance(
String address, [BtcNetwork? network]) → Future< String> -
Returns the confirmed balance in satoshis.
override
-
getFeeEstimates(
[BtcNetwork? network]) → Future< List< BtcFeeEstimate> > -
Returns fee rates by confirmation target, in satoshis per virtual byte.
override
-
getUtxos(
String address, [BtcNetwork? network]) → Future< List< BtcUtxo> > -
Returns the unspent outputs for an address.
override
-
install(
DynamicClient client) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publicKeyForAddress(
String address) → String -
Public key from the credential's walletAdditionalAddresses, used to construct a PSBT.
override
-
signPsbt(
String fromAddress, String unsignedPsbt) → Future< String> -
Signs all owned PSBT inputs without input-index or sighash restrictions. Returns the partially signed PSBT.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited