DeFi utility for EOS Mainnet
$ npm install git+ssh://[email protected]:EOS-Nation/defi.git
id | symcodes |
---|---|
coral |
CRL |
defibox |
BOX |
dfs |
DFS |
dmd |
DMD |
wool |
WOOL |
yfc |
YFC |
superdad |
DAD |
dolphin |
DOP |
rabbit |
RAB/CRT |
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 );
})()