
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
@rei-network/core
Advanced tools
[](https://www.npmjs.org/package/@rei-network/core) 
The core logic of blockchain node, including:
BlockchainMonitor
: Contains several events
logs
: Emit when a new transaction's log is generatedremovedLogs
: Emit when the transaction has been rolled backnewHeads
: Emit when canonical chain changesIndexer
and BloomBitsFilter
: Create bloom bits index for section
Consensus
: Consensus engine implement
Protocols
: P2P protocols, include rei-ethwire
and rei-consensus
Txpool
: Manage pending and queued transactions
Sync
: Synchronize blocks
TxSync
: Synchronize transactions
Tracer
: Tracer provides an implementation of tracing blocks or transactions
Contracts
: Some classes are used to interact with the smart contract
Validation
: Contains the logic to verify the block
Hardforks
: Contains logic related to the hard fork
npm install @rei-network/core
const node = await NodeFactory.createNode({
databasePath: "path/to/dataDir",
chain: "chainName",
mine: {
enable: true,
coinbase: "address1",
},
network: {
enable: true,
},
account: {
keyStorePath: "path/to/keystore",
unlock: [
["address1", "passphrase1"],
["address2", "passphrase2"],
],
},
});
await node.abort();
FAQs
[](https://www.npmjs.org/package/@rei-network/core) 
The npm package @rei-network/core receives a total of 2 weekly downloads. As such, @rei-network/core popularity was classified as not popular.
We found that @rei-network/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.