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

@hemergy/core-sdk

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hemergy/core-sdk

TypeScript NPM Module for Hemergy Core

  • 0.0.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Hemergy SDK

Usage

import Hermegy from '@hemergy/core-sdk'

const signer = await ethersProvider.getSigner(); // ethers signer to be used in all endpoint calls as endUserAddress
const hemergy = new Hemergy({ baseURL: 'https://dev-core.hemergy.com', signer });

const account = await hemergy.createAccount(); // Create an account managed by the signer

const isKYCed = await hemergy.isKYCed(account); // Check if the account is KYCed

const project = await hemergy.createProject(account); // Create an project under an account. Note: the account should be KYCed

API

FunctionDescription
getContractsReturn the ether contracts to interact with
getSignerAddressReturn the signer address
createAccountCreate an account signer by the signer
isKYCedCheck if the account is KYCed
createProjectCreate a project under a specific account
addProjectBeneficiariesAdd beneficiaries to a project
investInProjectAllow an investor to invest in a project
divestInProjectAllow an investor to divest in a project
approveAccountAmountApprove an amount sent to an account
mintGet some amount in user account (Only available in dev and testnet environment )
getBalanceGet balance of user account (Only available in dev and testnet environment )

FAQs

Package last updated on 08 Apr 2024

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