Socket
Book a DemoInstallSign in
Socket

@kyve/smartweave

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyve/smartweave

The official KYVE node for SmartWeave

latest
Source
npmnpm
Version
0.0.0-alpha.38
Version published
Maintainers
2
Created
Source

@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.

FAQs

Package last updated on 07 Oct 2021

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