stellar_asset_lists 1.0.4 stellar_asset_lists: ^1.0.4 copied to clipboard
The Stellar Asset Lists package is designed to facilitate the integration of curated Stellar asset lists into Stellar applications and services. This package adheres to the Stellar Ecosystem Proposal [...]
example/stellar_asset_lists_example.dart
import 'package:stellar_asset_lists/stellar_asset_lists.dart';
void main() {
final resolver = StellarAssetListResolver();
resolver.fetchAvailableAssetLists().then((assetLists) {
for (final assetList in assetLists) {
print(assetList.url);
}
});
resolver.fetchAssetList('https://lobstr.co/api/v1/sep/assets/curated.json').then((assetList) {
for (final asset in assetList.assets) {
print(asset.icon);
}
});
}