lamassu-server/lib/plugins/wallet/trongrid/trongrid.js
2023-09-11 12:13:14 +01:00

14 lines
344 B
JavaScript

const _ = require('lodash/fp')
const base = require('../tron/base')
const NAME = 'trongrid'
function run (account) {
if (!account.endpoint) throw new Error('Need to configure API endpoint for trongrid')
const endpoint = 'https://api.trongrid.io'
base.connect({ ...account, endpoint })
}
module.exports = _.merge(base, { NAME, run })