Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bitcoin-cli-ts
Advanced tools
Readme
Auto-generated Bitcoin client library for Bitcoin Core JSON-RPC API
Install the package with:
npm i bitcoin-cli-ts
# or
yarn add bitcoin-cli-ts
Choose the version that corresponds to your Bitcoin Core version.
We use the major and minor versions from Bitcoin Core Releases and reserve the patch version for library fixes related to static code or dependencies.
import { authenticatedBitcoind } from 'bitcoin-cli-ts'
const { host, username, password, port } = getBitcoinCoreRPCConfig()
const bitcoind = authenticatedBitcoind({
protocol: 'http',
host: host,
username,
password,
timeout: 30000,
port: parseInt(port, 10),
walletName: wallet, // optional
})
import { getBalance } from 'bitcoin-cli-ts'
const balance = await getBalance({ bitcoind })
Test with Jest framework:
yarn test
Build production (distribution) files in dist folder:
yarn build
It generates CommonJS (in dist/cjs folder), ES Modules (in dist/esm folder), as well as TypeScript declaration files (in dist/types folder).
Run:
yarn link
# or
npm link
and in your test project run:
yarn link bitcoin-cli-ts
# or
npm link bitcoin-cli-ts
If you want to remove the symlink, run:
# in your test project
yarn unlink bitcoin-cli-ts
# or
npm unlink bitcoin-cli-ts
# in bitcoin-cli-ts folder
yarn unlink
# or
npm unlink
Please check more details in npm link or yarn link
This library was developed based on:
FAQs
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
The npm package bitcoin-cli-ts receives a total of 1,025 weekly downloads. As such, bitcoin-cli-ts popularity was classified as popular.
We found that bitcoin-cli-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.