You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
Bitcoin.com’s developer plaform is based on the popular BITBOX javascript framework. Offering utility methods for Mnemonics, HDNodes, ECPairs, Crypto, Address conversion, Transactions and much more.
8
8
9
+
### Badger
10
+
11
+
Integrate Bitcoin Cash (BCH) into your next app with ease. Helpers, tools, and SDK's to help connect your website to the Badger wallet.
12
+
9
13
### REST
10
14
11
15
The BCH JSON RPC over HTTP including a fully documented and interactive GUI which developers can use to test their ideas and confirm their code is making proper API calls.
The library comes with some ready-to-use Badger components, `BadgerBadge` and `BadgerButton`, with more coming soon. These components are can be added quickly to any React projects. If you require a different solution then continue reading to learn how to create custom Badger integrations using `BadgerBase`.
29
29
30
-
#### Badger Button
30
+
#### Base props
31
31
32
-
Simple Badger Button to display the price in local currency, satoshi amount, and have an optional message. Supports the following props
32
+
These props are required or supported by all components which build upon `BadgerBase`.
33
33
34
34
-`to: BCH Address` - Required - Bitcoin Cash address to send BCH to
35
-
-`price: number` - Required - Price in chosen currency, will be turned into satoshis
35
+
-`price: number` - Optional - Price in chosen fiat currency, will be turned into the satoshis equivalent
36
+
-`amount: number` - Optional - Price in chosen ticker, currently only BCH
37
+
<spacer></spacer>
36
38
-`currency: string` - Default `USD` - [ISO Country Code](https://en.wikipedia.org/wiki/ISO_4217) to charge in
37
-
-`showSatoshis: boolean` Default `true` - Show the value in BCH Satoshis below the button
38
-
-`border: boolean` - Default `true` - Border around button and text
0 commit comments