@kyve/smartweave
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-alpha.38 • Public • Published

@kyve/smartweave

The official KYVE node for Smartweave.

About

The KYVE + SmartWeave node allows you to store the state from any SmartWeave contract onto Arweave. This allows the client to load a state a given block-height without the need of calculating through every transaction.

Usage

There are two ways to run the node. You can either run the integration itself or run a prebuilt version of the KYVE Node (recommended).

import SmartWeaveInstance from "@kyve/smartweave";
const poolID = ...
const stake = ...

SmartWeaveInstance(poolID, stake, wallet).run();

Config

The config is pool specific. You can find a list of pool here. For this integration the config should look like this, and the architecture should be set to SmartWeave:

{
  "contracts": ["CONTRACT_ID_1", ...]
}

The SmartWeave integration listens to changes happening on the contracts you specify in the config.

Readme

Keywords

none

Package Sidebar

Install

npm i @kyve/smartweave

Weekly Downloads

0

Version

0.0.0-alpha.38

License

MIT

Unpacked Size

10.2 kB

Total Files

4

Last publish

Collaborators

  • troykessler
  • johnletey
  • fabianriewe