@aldea/mocknet
TypeScript icon, indicating that this package has built-in type declarations

0.7.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @aldea/mocknet

Weekly Downloads

0

Version

0.7.3

License

Apache-2.0

Unpacked Size

51.2 kB

Total Files

33

Last publish

Collaborators

  • calvo.generico
  • brentongunning
  • libitx