Contributors Forks Stargazers Issues MIT License LinkedIn

Logo

Alchemy

Flutter & Dart 的炼金术平台客户端

关于项目

Flutter & Dart 的炼金术平台客户端

示例项目截图

Playground Desktop App

支持的平台

  • iOS
  • Android
  • Mac OS
  • Windows
  • Linux
  • Web

内置

Google Flutter SDK

入门

先决条件

安装

  1. 克隆仓库
git clone https://github.com/oliverbytes/alchemy.git
  1. 安装包依赖
flutter pub get
  1. 运行
flutter run

用法

// Import Package
import 'package:alchemy/alchemy.dart';

// Instantiate Object
final alchemy = Alchemy();

// Configuration
alchemy.client.init(
    subDomain: 'polygon-mumbai.g', // network
    apiKey: <Your-API-Key>,
    verbose: true,
);

debugPrint('requesting...');
final result = await alchemy.polygon.getBalance(
    address: '0x0ef2e86a73c7be7f767d7abe53b1d4cbfbccbf3a',
);

result.fold(
    (error) { // ERROR
        debugPrint(error.toJson().toString());
    },
    (response) { // SUCCESS
        debugPrint(response.toJson().toString());
    },
);

debugPrint('request done');

路线图

  • 完整的API
  • 单元测试

请参阅 开放问题 了解提议的功能(以及已知问题)。

贡献

贡献是开源社区如此美好、激发灵感和创造的源泉。您的任何贡献都备受赞赏

  1. Fork 该项目
  2. 创建您的特性分支(git checkout -b feature/AmazingFeature
  3. 提交您的更改(git commit -m 'Add some AmazingFeature'
  4. 推送到分支(git push origin feature/AmazingFeature
  5. 打开一个拉取请求

许可证

根据 MIT 许可证分发。有关更多信息,请参阅 LICENSE

联系方式

Oliver Martinez – @oliverbytes[email protected]

项目链接: https://github.com/oliverbytes/alchemy

致谢

GitHub

查看 Github