Skip to content

EOS-Nation/defi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defi

DeFi utility for EOS Mainnet

Install

$ npm install git+ssh://[email protected]:EOS-Nation/defi.git

DAPPS

id symcodes
coral CRL
defibox BOX
dfs DFS
dmd DMD
wool WOOL
yfc YFC
superdad DAD
dolphin DOP
rabbit RAB/CRT

Actions

  1. get_all_claims returns you all the claimable actions

Quick Start

import { JsonRpc } from 'eosjs';
import * as defi from "defi";

const rpc = new JsonRpc("https://eos.eosn.io", { fetch: require('node-fetch') });

// params
const chain = "eos";
const dapp = "defibox";
const owner = "myaccount";
const authorization = [{actor: owner, permission: "active"}];

(async () => {
    // available claim actions
    const actions = await defi[chain][dapp].get_available_claims( rpc, owner, authorization );
    console.log( actions );
})()