Code Monkey home page Code Monkey logo

bitcoin-react's Introduction

Bitcoin Reactjs tool

Features

  • Create buttons to accept bitcoins via QR code scanner.
  • Customize QR codes with a fixed amount to show when scan the client.
  • Compatibility with any wallet that uses the Bitcoin URI protocol.

Live Demo

Go to this site for a quick demo with your wallet.

How to use the component

Install the package via NPM with the following command:

npm i @ibunker/bitcoin-react

Just import the following:

import { BitcoinQR } from '@ibunker/bitcoin-react';

And the base styles :

import '@ibunker/bitcoin-react/dist/index.css';

Later you can use the component like this:

Example: Send donations to this project

<BitcoinQR
    bitcoinAddress="bc1qr3ja0feke2d7zg8jr0sjhr4aw5ppezt7n954u7"
    message="Donate bitcoin to support this project"
    title="Donate bitcoin"
/>

Example: Send 0.1 BTC donation to this project

<BitcoinQR
    amount={0.1}
    bitcoinAddress="bc1qr3ja0feke2d7zg8jr0sjhr4aw5ppezt7n954u7"
    message="Donate bitcoin to support this project"
    title="Donate bitcoin"
/>
Property Description type
showHeartDonation Show a Heart animation under the QR code. Boolean
title Will show a title at the top of the QR code. String
message Will add a message to the QR. String
bitcoinAddress bitcoin address to send the payment. Can be any BTC format address. String

How to quick donate to this project

Did this help you in anything useful? or Do you feel that it is your lucky day and you are generous? consider donating to the author to support this project. Use your favorite wallet! ;)

Please send DONATIONS for this project to Bitcoin Address: bc1qr3ja0feke2d7zg8jr0sjhr4aw5ppezt7n954u7

Donate bitcoin to support this project :D bc1qr3ja0feke2d7zg8jr0sjhr4aw5ppezt7n954u7

This project was bootstrapped with Create React App. and create-react-library. I do recommend those libraries for some magic ;).

bitcoin-react's People

Contributors

ismaelssr avatar

Watchers

James Cloos avatar Ismael Terreno avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.