DeFi utility for EOS Mainnet
$ npm install git+ssh://git@github.com:EOS-Nation/defi.git
coral
defibox
dfs
dmd
wool
yfc
get_all_claims
returns you all the claimable actions
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 );
})()