@kyve/smartweave
v0.0.0-alpha.38
Published
The official KYVE node for SmartWeave
Downloads
93
Keywords
Readme
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.