Blockchain class
Blockchain backends module provides the implementation of a few commonly-used backends like Electrum, and Esplora.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
broadcast(
Transaction tx) → Future< void> - The function for broadcasting a transaction
-
estimateFee(
int target) → Future< FeeRate> - Estimate the fee rate required to confirm a transaction in a given target of blocks
-
getBlockHash(
int height) → Future< String> - The function for getting block hash by block height
-
getHeight(
) → Future< int> - The function for getting the current height of the blockchain.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required BlockchainConfig config}) → Future< Blockchain> - Blockchain constructor