stellar_asset_lists 1.0.4 copy "stellar_asset_lists: ^1.0.4" to clipboard
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);
    }
  });
}
2
likes
140
pub points
0%
popularity

Publisher

unverified uploader

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 (SEP-42) standard, providing a standardized mechanism for defining, validating, and sharing lists of Stellar assets. This helps to enhance user experiences and trust by ensuring consistency and ease of integration across the Stellar network.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on stellar_asset_lists