Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 636 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 636 Bytes

tulip-data

This is a collection of utilities to query data of xdai and other networks

Supported Queries

The below all return a Promise that resolves with the requested results.

  1. tulipData.wallet.tokenBalances({user_address}) Gets token balances of all tokens listed on honeyswap.
  2. tulipData.wallet.poolBalances({user_address}) Gets lp balance and information of honeyswap lps.

Example

const tulipData = require('tulip-data'); // common js
// or
import tulipData from 'tulip-data'; // es modules

// query and log resolved results
tulipData.wallet.tokenBalances
  .then(list => console.log(list))