A pure and powerful JavaScript Bitcoin library.
npm install @gemlink/glink-bitcore-ppcsh
npm install bitcore-lib
`
`sh
bower install bitcore-lib
`
Documentation
The complete docs are hosted here: bitcore documentation. There's also a bitcore API reference available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility.
Examples
- Generate a random address
- Generate a address from a SHA256 hash
- Import an address via WIF
- Create a Transaction
- Sign a Bitcoin message
- Verify a Bitcoin message
- Create an OP RETURN transaction
- Create a 2-of-3 multisig P2SH address
- Spend from a 2-of-2 multisig P2SH address
Building the Browser Bundle
To build a bitcore-lib full bundle for the browser:
`sh
gulp browser
`
This will generate files named bitcore-lib.js and bitcore-lib.min.js.
You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout the releases.
Development & Tests
`sh
git clone https://github.com/bitpay/bitcore-lib
cd bitcore-lib
npm install
`
Run all the tests:
`sh
gulp test
`
You can also run just the Node.js tests with gulp test:node, just the browser tests with gulp test:browser or create a test coverage report (you can open coverage/lcov-report/index.html to visualize it) with gulp coverage`.