algorand_dart 2.0.0-dev.14 copy "algorand_dart: ^2.0.0-dev.14" to clipboard
algorand_dart: ^2.0.0-dev.14 copied to clipboard

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.dev:

algorand_dart: ^latest-version
copied to clipboard

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

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,
);
copied to clipboard

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),
);
copied to clipboard
35
likes
130
points
167
downloads

Publisher

verified publisherkotapp.io

Weekly Downloads

2024.07.05 - 2025.01.17

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

algorand_json, algorand_msgpack, base32, buffer, collection, convert, crypto, cryptography, dio, equatable, json_annotation, retrofit

More

Packages that depend on algorand_dart