Skip to content

0xchat-app/cashu-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: LGPL v3

Cashu-dart

Introduction

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.

Supported Protocols

Cashu-dart supports the following Cashu protocols:

Token Format Support

Cashu-dart provides support for the following token formats:

  • ❌ v1 read (deprecated)
  • ❌ v2 read (deprecated)
  • ✔️ v3 read/write

Usage Example

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.....',
);

Contributing

Contributions are welcome! Please read our contribution guide to learn how you can participate in the development of this project.

License

Cashu-dart is released under the GNU Lesser General Public License v3.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages