UNPKG

@gateway.fm/gtw-dvf-client-js

Version:

DVF client js lib with gateway.fm rpc endpoints

12 lines (10 loc) 296 B
const { get } = require('request-promise') module.exports = async (dvf, token) => { if (token) { const response = await get( `${dvf.config.api}/v1/trading/r/getTokenHolders?token=${token}`, {headers: { Authorization: dvf.config.apiKey}} ) return response } return null }