All Projects → goldcaddy77 → reblocks

goldcaddy77 / reblocks

Licence: MIT License
React Components for Nano cryptocurrency (formerly RaiBlocks) - including Payments via Brainblocks

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to reblocks

jNano
A comprehensive Java library for the Nano cryptocurrency.
Stars: ✭ 25 (+19.05%)
Mutual labels:  nano, raiblocks, xrb, nanocurrency
Nano Node
Nano is a cryptocurrency
Stars: ✭ 3,336 (+15785.71%)
Mutual labels:  nano, nanocurrency
NanoWalletBot
[DISCONTINUED] Open source Telegram bot for Nano currency
Stars: ✭ 52 (+147.62%)
Mutual labels:  nano, raiblocks
RaiBlocksPHP
A bunch of PHP methods to build and sign transactions
Stars: ✭ 20 (-4.76%)
Mutual labels:  nano, nanocurrency
Nano.Net
A .NET library for Nano
Stars: ✭ 19 (-9.52%)
Mutual labels:  nano, nanocurrency
rai
🗿 rai is a pythonic client for interacting with Raiblocks nodes
Stars: ✭ 21 (+0%)
Mutual labels:  nano, raiblocks
gonano
An implementation of the Nano cryptocurrency in Go
Stars: ✭ 34 (+61.9%)
Mutual labels:  nano, raiblocks
nano-vanity
Vanity address generator for Nano
Stars: ✭ 37 (+76.19%)
Mutual labels:  nano, raiblocks
RaiBlocksWebAssemblyPoW
WebAssembly Nanocurrency PoW implementation
Stars: ✭ 33 (+57.14%)
Mutual labels:  nano, nanocurrency
Nault
⚡ The most advanced Nano wallet with focus on security, speed and robustness
Stars: ✭ 228 (+985.71%)
Mutual labels:  nano, nanocurrency
MyNanoNinja
The perfect tool for Nano representatives lists and network statistics
Stars: ✭ 33 (+57.14%)
Mutual labels:  nano, nanocurrency
nanook
Ruby library for making and receiving payments and managing a nano currency node
Stars: ✭ 17 (-19.05%)
Mutual labels:  nano, nanocurrency
nano-rs
An implementation of Nano in Rust using Tokio
Stars: ✭ 29 (+38.1%)
Mutual labels:  nano, nanocurrency
nano-update-tx-work
Rebroadcast unconfirmed Nano transactions with higher proof-of-work (PoW) to help restart expired elections.
Stars: ✭ 14 (-33.33%)
Mutual labels:  nano, nanocurrency
stan
🔨 Collection of front-end engineering tools
Stars: ✭ 19 (-9.52%)
Mutual labels:  typescript-library
fireblocks-sdk-py
Official Python SDK for Fireblocks API
Stars: ✭ 32 (+52.38%)
Mutual labels:  crypto
awesome-tetherino
Awesome Tetherino - 60 000+ Million $USDT Crypto "Stable" Coin Printed Out of Thin Air and Officially Backed by Commercial Paper (2-Ply Rated Soft - Yes, Trust Us, Don't Verify) - Inside the Tether Ponzi Scheme - A Bubble for the History Books and Fraud on the Scale of Madoff
Stars: ✭ 45 (+114.29%)
Mutual labels:  crypto
crypto compare
CryptoCompare.com API client for Python
Stars: ✭ 28 (+33.33%)
Mutual labels:  crypto
desktop
CoinApp is a simple to use minimal Cryptocurrency Wallet for Ethereum, ERC20 Tokens, Bitcoin and Litecoin built for Windows, Mac and Linux.
Stars: ✭ 60 (+185.71%)
Mutual labels:  crypto
python-coinmarketcap
CoinMarketCap Python API Wrapper
Stars: ✭ 67 (+219.05%)
Mutual labels:  crypto

Reblocks - React Nano Cryptocurrency Payments and other Components

styled with prettier npm version CircleCI semantic-release

Various React components for the Nano Cryptocurrency including a wrapper around the Brainblocks payment button that makes it simple to start taking Nano payments in React projects.

Demo: goldcaddy77.github.io/reblocks

Table of Contents

Install

yarn add reblocks

Usage

import { ReblocksPayment } from 'reblocks';

const onSuccess = (data: PaymentResponse) => {
  console.log('Got transaction token', data.token);
};

const Button = (
  <ReblocksPayment
    accountId="xrb_3ritoyx4zcixshfbezg4aycb49xbupw9ggink1rfm43tm6uh87t4ifuxg5dm"
    amount={200000}
    onPaymentSuccess={onSuccess}
  />
);

Note: this package is built with TypeScript and already contains the relevant TypeScript type definitions.

API

ReblocksPayment

To initiate a payment, use the ReblocksPayment component. The ReblocksPayment takes in the following props:

  • accountId {string} account to send funds to
  • amount {string} ammount of xrb to send (Note: 1 xrb = 1/1,000,000 XRB)
  • onPaymentSuccess {function} function to run on successful payment. This is passed { token: 'TOKEN'}

Link to demo

ReblocksFiatConversion

To display the current value of XRB in a fiat currency, use the ReblocksFiatConversion component. The ReblocksFiatConversion takes in the following props:

  • currency {currency} 3 digit fiat currency you want to display the current value of 1 XRB

Link to demo

ReblocksQRCode

To create a QR code for payments, use the ReblocksQRCode component. The ReblocksQRCode component takes in the following props:

You can also style the QR Code itself using the params we pass into qrcode.react:

  • size {number - optional} Size
  • bgColor {string (CSS color) - optional} Background color
  • fgColor {string (CSS color) - optional} Foreground color

    Nano Light Blue   Nano Dark Blue   Nano Orange  

Link to demo

Donate

If you like this project and want to help support future development, test it out by buying me a 🍺: xrb_3ritoyx4zcixshfbezg4aycb49xbupw9ggink1rfm43tm6uh87t4ifuxg5dm

Contribute

PRs accepted. Note that this library uses a bunch of linters/code formatters to keep things consistent:

To get the project running locally, run yarn to install dependencies, and then run:

yarn run storybook

This will build the project and run storybook on localhost:6006. Storybook is also what drives the demo page. You can test out your changes by editing the *.story.ts files. These are what generate the stories on the left navigation.

License

MIT © Dan Caddigan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].