yarn add tripio
Or
npm install tripio
Our SDK relies on MetaMask wallet environment, please select Chrome browser and install MetaMask plugin!
import Tripio from 'tripio';
let tripio = new Tripio(web3, { env: 'ropsten' });
// async/await
let vendors = await tripio.roomNightAdmin.getVendorIds(0, 100);
// Promise
tripio.roomNightAdmin.getVendorIds(0, 100).then(res => {
let vendors = res;
}, err => {
});