- EOSIO RPC calls
- Typescript Interfaces/Types
- EOSIO Smart Contract
- tables
- actions
- code
Using Yarn:
$ yarn add gems-sdk
or using NPM:
$ npm install --save gems-sdk
or using latest GitHub:
$ npm install --save dotGems/gems-sdk
import * as sdk from "gems-sdk"
(async () => {
// Get .gems blends
const collection_name = "memewarsreal";
const blends = await sdk.gems.blend.get_blends(collection_name);
console.log(blends);
// Get .gems blend recipes
const recipes = await sdk.gems.blend.get_recipes(collection_name);
console.log(recipes);
// Get AtomicDrops
const drop_id = 81;
const drop = await sdk.atomic.drops.get_drop(drop_id);
console.log(drop);
})()
import * as sdk from "gems-sdk"
// change EOSIO endpoint
sdk.config({endpoint: "https://eos.eosn.io"});
// change particular smart contract
sdk.gems.blend.config({code: "d.blend.gems"});