New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

js-moi-interactions

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-moi-interactions

Module to interact with MOI Logic Objects.

latest
Source
npmnpm
Version
0.7.0-rc14
Version published
Maintainers
1
Created
Source

image

docs npm version license

latest tag issue count pulls count test status

js-moi-wallet

This is a sub-package of js-moi-sdk.

The js-moi-wallet package represents a Hierarchical Deterministic Wallet capable of signing interactions and managing accounts. It provides a convenient interface for managing multiple accounts, generating keys, and securely signing interactions.

Installation

Install the latest release using the following command.

npm install js-moi-wallet

Usage

    import { Wallet } from "js-moi-wallet";
    import { getLogicDriver } from "js-moi-logic";

     const initWallet = async () => {
        const mnemonic = "mother clarify push liquid ordinary social track ...";
        const wallet = await Wallet.fromMnemonic(mnemonic);
        const provider = new JsonRpcProvider("http://localhost:1600/");
        
        wallet.connect(provider);

        return wallet;
    }

    (async () => {
        const logicId = "0x0800007d70c34ed6ec4384c75d469894052647a078b33ac0f08db0d3751c1fce29a49a";
        const wallet = await initWallet();
        const logicDriver = await getLogicDriver(logicId, wallet);
        const name = await logicDriver.persistentState.get("name");
        console.log(name)
    })()

    // Output
    /*
        TOKYO
    */

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

License

© 2023 Sarva Labs Inc. & MOI Protocol Developers.

This project is licensed under either of

at your option.

The SPDX license identifier for this project is MIT OR Apache-2.0.

Keywords

moichain

FAQs

Package last updated on 01 Apr 2026

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