btcpay_client 0.1.5 copy "btcpay_client: ^0.1.5" to clipboard
btcpay_client: ^0.1.5 copied to clipboard

Library to interact with a BTCPay or BitPay server. Usable in Flutter. Basic functionality is supported.

BTCPay client library for Dart #

pub package CircleCI

This client takes care of communications to a BTCPay server. This is heavily dependent on PointyCastle but eschews reflection so it can be used in Flutter.

This is not a complete library. Pairing and creating invoices is supported but other endpoints are not. Note that most of the heavy lifting is done. The generation of the SIN and the signing of requests.

Installing #

Add it to your pubspec.yaml:

dependencies:
  btcpay_client: ^0.1.2

Getting Started #

Have a look in the example directory for several examples.

Creating a client is done by passing a URL on which to reach your BTCPay server and either a BigInt or a AsymmetricKeyPair.

var client = Client.fromBarePrivateKey("url-to-btcpay-server", someBigInt);
await client.createInvoice(10.0, "EUR");

Tests #

$ pub run test

Licence overview #

All files in this repository fall under the license specified in COPYING. The project is licensed as AGPL with a lesser clause. It may be used within a proprietary project, but the core library and any changes to it must be published online. Source code for this library must always remain free for everybody to access.

5
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Library to interact with a BTCPay or BitPay server. Usable in Flutter. Basic functionality is supported.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

asn1lib, base58check, convert, hex, pointycastle

More

Packages that depend on btcpay_client