Cashu-dart is a library written in the Dart programming language, specifically designed to implement and support the protocols of Cashu. This library aims to provide Dart developers with a simple and efficient way to integrate and utilize the Cashu protocols.
Cashu-dart supports the following Cashu protocols:
Cashu-dart provides support for the following token formats:
- ❌ v1 read (deprecated)
- ❌ v2 read (deprecated)
- ✔️ v3 read/write
import 'package:cashu_dart/cashu_dart.dart';
// Redeem
Cashu.redeemEcash(ecashString: ecashToken);
// Send
Cashu.sendEcash(
mint: IMint(
mintURL: 'https://testnut.cashu.space',
),
amount: 21,
memo: 'Sent via Cashu-dart.'
);
// Create invoice
Cashu.createLightningInvoice(
mint: IMint(
mintURL: 'https://testnut.cashu.space',
),
amount: 21,
);
// Pay invoice
Cashu.payingLightningInvoice(
mint: IMint(
mintURL: 'https://testnut.cashu.space',
),
pr: 'lnbc.....',
);
Contributions are welcome! Please read our contribution guide to learn how you can participate in the development of this project.
Cashu-dart is released under the GNU Lesser General Public License v3.0.