@maplabs/map-atlas-sdk
v0.0.5
Published
Downloads
2
Readme
MAP-atlas sdk
Description
Getting Started
Dependencies
- npm
- web3.js
Installing
- npm
npm i @maplabs/map-atlas-sdk
- yarn
yarn add @maplabs/map-atlas-sdk
Usage
Initialize
const provider = window.ethereum // metamask
// or
const provider = web3modal.connect(); // web3modal
// ...
const web3 = new Web3(provider)
const contractKit = new MapContractKit(web3)
const address = "0xabcd........";
const userSummary = await contractKit.getAccountSummary(address)
Lock
const lockedContract = contractKit.lockedContract;
await lockedContract.lock(new BigNumber('12'));
...
Help
Authors
Version History
License
This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details