BlockfrostBlockchainAdapter class
Loads BlockFrost data into this wallet model
Caches transactions, blocks, acount data and assets.
- Implemented types
Constructors
- BlockfrostBlockchainAdapter({required NetworkId networkId, required Blockfrost blockfrost, required String projectId})
Properties
- blockfrost → Blockfrost
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- networkId → NetworkId
-
final
- projectId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cachedAccountContent(
Bech32Address stakeAddress) → AccountContent? -
BlockchainCache
override
-
cachedBlock(
BlockHashHex blockId) → Block? -
BlockchainCache
override
-
cachedCurrencyAsset(
String assetId) → CurrencyAsset? -
BlockchainCache
override
-
cachedTransaction(
TxIdHex txId) → RawTransaction? -
BlockchainCache
override
-
clearCaches(
) → void -
latestBlock(
) → Future< Result< Block, String> > -
Returns last latest Block instance from blockchain if successful.
override
-
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.
override
-
markSpentTransactions(
List< RawTransactionImpl> transactions) → List<RawTransactionImpl> -
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateWallet(
{required ShelleyAddress stakeAddress, TemperalSortOrder sortOrder = TemperalSortOrder.descending}) → Future< Result< WalletUpdate, String> > -
Collects the latest transactions for the wallet given it's staking address.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
urlFromNetwork(
NetworkId networkId) → String - return base URL for blockfrost service given the network type.
Constants
- mainnetUrl → const String
- projectIdKey → const String
- testnetUrl → const String
- txContentType → const String