0.0.20 • Published 1 month ago

@hemergy/core-sdk v0.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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 )
0.0.20

1 month ago

0.0.19

1 month ago

0.0.18

2 months ago

0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

9 months ago

0.0.14

9 months ago

0.0.15

8 months ago

0.0.16

7 months ago

0.0.17

6 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago