BlockchainAdapter class abstract
High-level abstraction to blockchain tailored towards balences and transactions.
- Inheritance
-
- Object
- BlockchainCache
- BlockchainAdapter
- Implementers
Constructors
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
-
cachedAccountContent(
Bech32Address stakeAddress) → AccountContent? -
inherited
-
cachedBlock(
BlockHashHex blockId) → Block? -
inherited
-
cachedCurrencyAsset(
String assetId) → CurrencyAsset? -
inherited
-
cachedTransaction(
TxIdHex txId) → RawTransaction? -
inherited
-
latestBlock(
) → Future< Result< Block, String> > - Returns last latest Block instance from blockchain if successful.
-
latestEpochParameters(
{int epochNumber = 0}) → Future< Result< LinearFee, String> > - Return the fee parameters for the given epoch number or the latest epoch if no number supplied.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
submitTransaction(
Uint8List cborTransaction) → Future< Result< String, String> > - Submit ShelleyTransaction encoded as CBOR. Returns hex transaction ID if successful.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateWallet(
{required ShelleyAddress stakeAddress}) → Future< Result< WalletUpdate, String> > - Collects the latest transactions for the wallet given it's staking address.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited