nodejs bitcoin payment

http://bit.ly/accept-bitcoin coffeescript bitcoin nodejs commits branches releases contributors Apache-2.0 Latest commit be932d0 Apr 17, 2017 Merge pull request #8 from bryant1410/master Permalink README.md Accept Bitcoin Finally a developer-friendly tool to simply accept bitcoins in your site.Lite and fast, built on top of bitcore.No need to install local bitcoin node RPC client.We use blockr API instead.No need to install any wallet client.Create ad-hoc address to accept bitcoins and transfer incomes to your offline account.Get Started Simply install via npm: Load AC and you're ready to go!Motivation Accepting bitcoins online can be complex to program and require you to install a bitcoin RPC client in order to read and write to the blockchain.This client require a lot of resources (in terms of CPU, networking and storage).Most of the users are using a wallet to store their bitcoins.This wallet is a simple way to secure your public and private key.
For security reasons you better save this wallet offline in a "cold storage".More about the motivation behind this project at my blog post.Example You can override the default settings on creating Examples are provided here Settings You can override the default settings: name type default value comment payToAddress string - Your bitcoin adress you wish to transfer incomes to.network string test choose your bitcoin RPC env.bitcoin on xeonvalues are: test and livemore info here password string - choose your random password to encrypt generated keys.bitcoin value in randsstorePath string ./keys.txt path to store a file containing all the ad-hoc generated keys.bitcoin developer london
encryptPrivateKey bool false in case you want the stored keys to be encrypted (using password).payReminderToAddress string payToAddress In case transfer amount is smaller than income and fees.includeUnconfirmed bool false include unconfirmed transactions when checking for unspent incomes checkTransactionEvery int 1000 * 60 * 2 (2 minutes) how often (in millisecond) to ping the network when checking for transactions.5 gh/s bitcoin miner bitcoincheckBalanceTimeout int 1000 * 60 * 60 * 2 (2 hours) timeout (in millisecond) when checking balance of an address.psc in bitcoincheckUnspentTimeout int 1000 * 60 * 60 * 2 (2 hours) timeout (in millisecond) when checking unspent transactions of an address.armory bitcoin mining
minimumConfirmations int 6 minimum confirmations needed in order to trigger hasBalance event.txFee float 0.0001 fee (in bitcoin) for transferring amount from ad hoc address to your address.Key class This class is responsible for creating new bitcoin addresses, storing them and transferring funds between them.Some key functions are: storeKey(wk) - store your key in a local file.checkBalance()- check and notify you when an address has minimum balance.bitcoin 500 internal server errorpayTo(payToAddress, options, callback) - transfer all balance of this address to another address.circle bitcoin ios appEncrypt class Contains helpers to encrypt and decrypt strings.bitcoin what is hashrateUsed for storing your keys data locally.
Fork it, star it, share it and add your code to the project.All the src code is written in coffeescript and is under src.There's a tool that convert it automatically to js each time you change a file and put it under lib folder.Simply run cake build for that.A pure JavaScript Bitcoin library for node.js and browsers.Used in production by over 1.5 million wallet users, BitcoinJS is the backbone for almost all Bitcoin web wallets in production today.Features Clean - Pure JavaScript, concise code, easy to read.Tested - Coverage > 95%, third-party integration tests.Careful - Two person approval process for small, focused pull requests.Compatible - Works on Node.js and all modern browsers.Powerful - Support for advanced features, such as multi-sig, HD Wallets.Secure - Strong random number generation, PGP signed releases, trusted developers.Principled - No support for browsers with crap RNG (IE < 11) Standardized - Node community coding style, Browserify, Node's stdlib and Buffers.Fast - Optimized code, uses typed arrays instead of byte arrays for performance.
Experiment-friendly - Bitcoin Mainnet and Testnet support.Altcoin-ready - Capable of working with bitcoin-derived currencies (such as Dogecoin).Who's using BitcoinJS Blockchain.info Dark Wallet BitAddress GreenAddress Skyhook ATM * Dogechain Wallet Justcoin Exchange * Brainwallet TREZOR Wallet * * directly contributed code or funding to the project.Who's not Your bank possibly your bank.Get Started Install via NPM: Compile for browser: Source code: Releases Latest   warning: master branch is unstable!Only use releases in production.Examples Generating a Bitcoin address: Creating a Transaction Documentation We provide extensive code testing as a reference that shows what the code is proven to do.There are no plans for written documentation, but you are welcome to contribute some.Contributors Stefan Thomas is the inventor and creator of this project.His pioneering work made Bitcoin web wallets possible.