Installing the Library
Source Code
The source code is available on GitHub at https://github.com/btc-vision/opnet.
Prerequisites
Before installing the opnet client library, ensure the following dependencies are installed and properly configured:
- git: Download the latest version from the git website.
- Node.js version 24.x or higher: Download from the Node.js website.
- TypeScript version 5.9 or higher.
-
Add the following to the dependencies section of your package.json file:
package.jsontext
... "dependencies": { "typescript": "^5.9.3" }Note: version 5.9.3 was current at the time of writing. Update to the latest version as needed.
Then run:
bashnpm install
-
Add the following to the dependencies section of your package.json file: