mto-custom-driver
TypeScript icon, indicating that this package has built-in type declarations

1.0.34 • Public • Published

HMP SDK

HMP SDK is a blockchain manager for an escrow contracts, it exports the full process for purchasing and selling a product and securing clients fidelity through escrow system.

How to use custom SDK in nodejs based app (rinkeby testnet)

import { MTOCustomDriver } from "mto-custom-driver"; // TODO check import types issue

const driver = new MTOCustomDriver({
  privateKey: wallet.privateKey,
  blockchain: "rinkeby-testnet",
});
await driver.init();
const result = await driver.purchase(
  PRODUCT_ID,
  MERCHANT_ADDRESS,
  AMOUNT,
  DISPUTABLE_TIME,
  WITHDRAW_TIME,
  {gasLimit:1000000}
);

Use SDK with react native

To use the SDK with React native a special package should be imported:

import "@ethersproject/shims";

Readme

Keywords

none

Package Sidebar

Install

npm i mto-custom-driver

Weekly Downloads

5

Version

1.0.34

License

ISC

Unpacked Size

176 kB

Total Files

18

Last publish

Collaborators

  • best2victory