
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@flarenetwork/mcc
Advanced tools
MCC or Multi-Chain Client is a Typescript library that:
We recommend to deploy nodes from our docker repo
If you have found a possible vulnerability please see SECURITY.md
The most basic use of the MCC client is to query blocks and transactions from different blockchains. The code below demonstrates how to query a transaction from the Bitcoin and Algorand networks, showcasing the unification of query methods as well as the unification of responses.
In the MCC, connections to each blockchain are made through a different MCC object.
NOTE: Networks are accessed through RPC endpoints that usually require some type of credentials. To start a connection credentials must be provided through the
MCCCreateobject, which is different depending on the connected chain.
Let's take a look at the minimal example to query a block and a transaction from the Bitcoin network by their height and transaction id (txid) respectively:
// Configuration object
const connectConfig = {
url: "https://myAwesomeBtcNode.com/",
username: "user",
password: "pass",
};
// MCC object used to connect to Bitcoin node
const MccClient = new MCC.BTC(connectConfig);
// Query block by its height
const block = await MccClient.getBlock(750_000);
// Log some details about the queried block
// Block height
console.log(block.number); // => 750000
// Block hash
console.log(block.blockHash); // => '<hash>'
// Query transaction
const transaction = await MccClient.getTransaction("<txid>");
// Log some details about the queried transaction
// Transaction timestamp
console.log(transaction.unixTimestamp); // => unixTimestamp
// Source addresses
console.log(transaction.sourceAddresses); // => [<address1>, <address2>, ...]
Now, to get block and transaction objects from a totally different blockchain such as Ripple, you only need to change the initialization of the MCC client, everything else remains the same.
// Configuration object
const connectConfig = {
url: "https://myAwesomeXrpNode.com/",
};
// MCC object used to connect to Ripple node
const MccClient = new MCC.XRP(connectConfig);
// Query block by its height
const block = await MccClient.getBlock(750_000);
// Log some details about the queried block
// Block height
console.log(block.number); // => 750000
// Block hash
console.log(block.blockHash); // => '<hash>'
// Query transaction
const transaction = await MccClient.getTransaction("<txid>");
// Log some details about the queried transaction
// Transaction timestamp
console.log(transaction.unixTimestamp); // => unixTimestamp
// Source addresses
console.log(transaction.sourceAddresses); // => [<address1>]
FAQs
Multi chain client
The npm package @flarenetwork/mcc receives a total of 99 weekly downloads. As such, @flarenetwork/mcc popularity was classified as not popular.
We found that @flarenetwork/mcc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.