
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
bifchain-js-query
Advanced tools
A simple query module for the Bif Core.
$ npm install --save bifchain-js-query
The tests can be run with Node.js
$ npm test
Create bifchain-js-query instance
const Query = require('bifchain-js-query')
const query = new Query({
host: 'https://seed1-node.bitfactory.cn',
timeout: 1000 * 60
})
Get account info
const address = 'did:bid:efBpp9wSged1ZZrCufBm67JLUcRU9cu2'
const accountInfo = await query.getAccountInfo(address)
console.log(accountInfo)
Get account metadata
const address = 'did:bid:efBpp9wSged1ZZrCufBm67JLUcRU9cu2'
const key = 'test'
const metadata = await query.getMetadata(address, key)
console.log(metadata)
Get account balance
const address = 'did:bid:efBpp9wSged1ZZrCufBm67JLUcRU9cu2'
const balance = await query.getBalance(address)
console.log(balance)
Get account nonce
const address = 'did:bid:efBpp9wSged1ZZrCufBm67JLUcRU9cu2'
const nonce = await query.getNonce(address)
console.log(nonce)
Get block info
const blockNumber = '100'
const blockInfo = await query.getBlockInfo(blockNumber)
console.log(blockInfo)
Get get latest info
const blockInfo = await query.getLatestInfo()
console.log(blockInfo)
Get validators for specific blockNumber
const blockNumber = '100'
const validators = await query.getValidators(blockNumber)
console.log(validators)
Get latest validators
const validators = await query.getLatestValidators()
console.log(validators)
Send transaction
const signedTransactionInfo = {
items: [{
transaction_blob: blob,
signatures: signatures
}]
}
const hash = await query.sendTransaction(signedTransactionInfo)
console.log(hash)
FAQs
A simple query module for the BifChain.
We found that bifchain-js-query demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.