Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iqprotocol/enterprise

Package Overview
Dependencies
Maintainers
10
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iqprotocol/enterprise

This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)

  • 0.16.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

Enterprise and Services

This package is part of IQ Protocol JS SDK.

:exclamation: The package is in development and breaking changes should be expected. Use at your own risk!

This package provides higher level abstraction over IQ Protocol smart contracts, allowing application developers to work with IQ enterprises and services regardless of the underlying blockchain.

Use this package to communicate with IQ Enterprises and Services deployed on-chain.

Installation

yarn add @iqprotocol/enterprise

Usage

import { EnterpriseFactory } from '@iqprotocol/enterprise';
import { EIP155BlockchainProvider } from '@iqprotocol/eip155';

const blockchain = new EIP155BlockchainProvider(...);
const chainId = await blockchain.getChainId();
const accountId = new AccountId({ address: '0x...', chainId });
const enterpriseFactory = new EnterpriseFactory(blockchain); 
const enterprise = await enterpriseFactory.create(accountId);

const enterpriseInfo = await enterprise.getInfo();
const services = await enterprise.getServices();
const serviceInfo = await services[0].getInfo();

FAQs

Package last updated on 20 Jul 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc