Contributors Forks Stargazers Issues MIT License LinkedIn

Logo

Alchemy

An Alchemy Platform client for Flutter & Dart

About The Project

An Alchemy Platform client for Flutter & Dart

EXAMPLE PROJECT SCREENSHOT

Playground Desktop App

Supported Platforms

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

Built With

Google Flutter SDK

Getting Started

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/oliverbytes/alchemy.git
  1. Install packages dependencies
flutter pub get
  1. Run
flutter run

Usage

// 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');

Roadmap

  • Complete API
  • Unit Testing

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Oliver Martinez – @oliverbytes[email protected]

Project Link: https://github.com/oliverbytes/alchemy

Acknowledgements

GitHub

View Github