Socket
Book a DemoInstallSign in
Socket

@aldea/mocknet

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aldea/mocknet

A mocked blockchain environment for building on the Aldea Computer.

0.8.0
latest
npmnpm
Version published
Weekly downloads
23
283.33%
Maintainers
3
Weekly downloads
 
Created
Source

Aldea Mocknet

Version License

A mocked blockchain environment for building on the Aldea Computer

No blocks, no consensus, just a full-featured virtual machine for validating and executing transactions and an API for fetching state from the mocked environment.

Usage

Projects created using the Aldea Starter Kit by default have the mocknet installed by default. You can run the mocknet within your starter kit project by using the command:

# using npm
npm run mocknet

# or using yarn
yarn mocknet

Alternatively, Docker users can start the mocknet in a container.

docker run -it -p '4000:4000' aldeacomputer/mocknet

Once the mocknet is running locally, hook the SDK up to use the mock environment.

import { Aldea } from '@aldea/sdk'

// Create an instance connecting to the mock node
const aldea = new Aldea('http://localhost:4000')

License

Aldea is open source and released under the Apache-2 License.

© Copyright 2023 Run Computer Company, inc.

FAQs

Package last updated on 17 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.