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
- ptr → AnyBlockchain
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
broadcast(
{required Transaction transaction, dynamic hint}) → Future< String> - The function for broadcasting a transaction
-
estimateFee(
{required BigInt target, dynamic hint}) → Future< FeeRate> - Estimate the fee rate required to confirm a transaction in a given target of blocks
-
getBlockHash(
{required int height, dynamic hint}) → Future< String> - The function for getting block hash by block height
-
getHeight(
{dynamic hint}) → 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
-
createMutinynet(
{int stopGap = 20}) → Future< Blockchain> -
Blockchain constructor for creating
Esplora
blockchain inMutinynet
Esplora url: https://mutinynet.com/api/ -
createTestnet(
{int stopGap = 20}) → Future< Blockchain> -
Blockchain constructor for creating
Esplora
blockchain inTestnet
Esplora url: https://testnet.ltbl.io/api