feat: tron cash-out
This commit is contained in:
parent
bb8b6ce354
commit
7f2963bc85
15 changed files with 795 additions and 9637 deletions
|
|
@ -4,12 +4,11 @@ const base = require('../tron/base')
|
|||
const NAME = 'trongrid'
|
||||
|
||||
function run (account) {
|
||||
if (!account.endpoint) throw new Error('Need to configure API endpoint for Infura')
|
||||
if (!account.endpoint) throw new Error('Need to configure API endpoint for trongrid')
|
||||
|
||||
const endpoint = _.startsWith('https://')(account.endpoint)
|
||||
? account.endpoint : `https://${account.endpoint}`
|
||||
const endpoint = 'https://api.trongrid.io'
|
||||
|
||||
base.connect(endpoint)
|
||||
base.connect({ ...account, endpoint })
|
||||
}
|
||||
|
||||
module.exports = _.merge(base, { NAME, run })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue