Alchemy
Flutter & Dart 的炼金术平台客户端
关于项目
Flutter & Dart 的炼金术平台客户端
示例项目截图
支持的平台
- iOS
- Android
- Mac OS
- Windows
- Linux
- Web
内置
Google Flutter SDK
入门
先决条件
- Flutter SDK
- Android SDK & Android Studio 用于部署到 Android
- XCode IDE 用于部署到 iOS/iPad/MacOS
- VS Code IDE 可选
安装
- 克隆仓库
git clone https://github.com/oliverbytes/alchemy.git
- 安装包依赖
flutter pub get
- 运行
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
- 单元测试
请参阅 开放问题 了解提议的功能(以及已知问题)。
贡献
贡献是开源社区如此美好、激发灵感和创造的源泉。您的任何贡献都备受赞赏。
- Fork 该项目
- 创建您的特性分支(
git checkout -b feature/AmazingFeature) - 提交您的更改(
git commit -m 'Add some AmazingFeature') - 推送到分支(
git push origin feature/AmazingFeature) - 打开一个拉取请求
许可证
根据 MIT 许可证分发。有关更多信息,请参阅 LICENSE。
联系方式
Oliver Martinez – @oliverbytes – [email protected]
项目链接: https://github.com/oliverbytes/alchemy
