A Flutter package for interacting with the Hedera Hashgraph, developed and maintained by Hydra Technologies.
Hydra Technologies provider of innovative solutions tailored to meet modern business challenges. Specializing in consulting, development, and support services, our mission is to help businesses thrive in the digital age. With a focus on cutting-edge technology and reliable support, we deliver custom software solutions designed to streamline operations and drive growth. Our experts are dedicated to navigating complex challenges and providing top-notch technological solutions, ensuring our clients stay ahead in a rapidly evolving market.
Add Hedera to your pubspec.yaml
file:
dependencies:
hedera:
Import Hedera in files where it will be used:
import 'package:hedera/hedera.dart';
import 'package:hedera/hedera.dart';
void main() async {
final client = HederaClient('https://your-hedera-node-url', 'your-api-key');
// Get the network version
final networkVersion = await client.call('net_version', []);
print('Network Version: $networkVersion');
}
import 'package:hedera/hedera.dart';
void main() async {
final client = HederaClient('https://your-hedera-node-url', 'your-api-key');
final account = Account(client, 'your-account-address');
// Get account balance
final balance = await account.getBalance();
print('Account Balance: $balance');
}
import 'package:hedera/hedera.dart';
void main() async {
final client = HederaClient('https://your-hedera-node-url', 'your-api-key');
final transaction = Transaction(client);
// Send a transaction
final transactionId = await transaction.sendTransaction(
'from-address',
'to-address',
'amount'
);
print('Transaction ID: $transactionId');
}
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.