{"repo":"ruimarinho/bitcoin-core","free":true,"listed":false,"github":"https://github.com/ruimarinho/bitcoin-core","clone":"git clone https://github.com/ruimarinho/bitcoin-core.git","description":"A modern Bitcoin Core REST and RPC client.","language":"JavaScript","stars":508,"topics":["bitcoin","rpc","client","request","rest"],"license":null,"category":"blockchain-web3","readme_excerpt":"bitcoin-core A modern Bitcoin Core REST and RPC client to execute administrative tasks, multiwallet operations and queries about network and the blockchain. Status [![npm version][npm-image]][npm-url] [![build status][travis-image]][travis-url] Installation Install the package via yarn : or via npm : Install the package via npm : Usage Client(...args) Arguments 1. [headers={}] (object) : Custom request headers. 2. [host=http://localhost:8332] (string) : The host to connect to. 3. [logger=debugnyan('bitcoin-core')] (Function) : Custom logger (by default, debugnyan ). 4. [password] (string) : The RPC server user password. 5. [timeout=30000] (number) : How long until the request times out (ms). 6. [username] (number) : The RPC server user name. 7. [version] (string) : Which version to check methods for (read more). 8. [wallet] (string) : Which wallet to manage (read more). Examples Using promises to process the response Using callbacks to process the response Callback support was removed. Since every method returns a Promise , callbackify() ( node@v8.2.0 ) can be used, or for older node versions you can use the npm package callbackify. Named parameters Since version v0.14.0, it is possible to send commands via the JSON-RPC interface using named parameters instead of positional ones. This comes with the advantage of making the order of arguments irrelevant. It also helps improving the readability of certain function calls when leaving out arguments for their default value. You mu","default_branch":null,"files":null,"tree":[],"storefront":"/r/ruimarinho","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ruimarinho/bitcoin-core/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}