algorand_dart 0.0.2-beta.4 copy "algorand_dart: ^0.0.2-beta.4" to clipboard
algorand_dart: ^0.0.2-beta.4 copied to clipboard

outdated

Unofficial community SDK to interact with the Algorand network, for Dart & Flutter

example/example.md

algorand_dart #

Unofficial community SDK to interact with the Algorand network, in Dart & Flutter

Getting Started #

Installation #

You can install the package via pub-web.flutter-io.cn:

algorand_dart: ^0.0.1-dev.1

Note: Algorand-dart requires Dart >=2.12.0 & null safety See the latest version on pub-web.flutter-io.cn

Usage #

Create an AlgodClient and IndexerClient and pass them to the Algorand constructor. We added extra support for locally hosted nodes & third party services (like PureStake).

final algodClient = AlgodClient(
    apiUrl: PureStake.TESTNET_ALGOD_API_URL,
    apiKey: apiKey,
    tokenKey: PureStake.API_TOKEN_HEADER,
);

final indexerClient = IndexerClient(
    apiUrl: PureStake.TESTNET_INDEXER_API_URL,
    apiKey: apiKey,
    tokenKey: PureStake.API_TOKEN_HEADER,
);

final algorand = Algorand(
    algodClient: algodClient,
    indexerClient: indexerClient,
);

Once installed, you can simply connect your application to the blockchain and start sending payments

algorand.sendPayment(
    account: account,
    recipient: newAccount.address,
    amount: Algo.toMicroAlgos(5),
);
33
likes
0
pub points
73%
popularity

Publisher

verified publisherkotapp.io

Unofficial community SDK to interact with the Algorand network, for Dart & Flutter

Homepage

License

unknown (LICENSE)

Dependencies

base32, buffer, collection, convert, crypto, cryptography, dio, equatable, json_annotation, msgpack_dart

More

Packages that depend on algorand_dart