Skip to content

dotGems/gems-sdk

Repository files navigation

.gems Javascript SDK

Build Status npm version MIT licensed

Overview

  • EOSIO RPC calls
  • Typescript Interfaces/Types
  • EOSIO Smart Contract
    • tables
    • actions
    • code

Install

Using Yarn:

$ yarn add gems-sdk

or using NPM:

$ npm install --save gems-sdk

or using latest GitHub:

$ npm install --save dotGems/gems-sdk

Quick Start

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);
})()

Configure

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"});

Releases

No releases published

Packages

No packages published