@gateway.fm/gtw-dvf-client-js
Version:
DVF client js lib with gateway.fm rpc endpoints
8 lines (6 loc) • 303 B
JavaScript
const { post } = require('request-promise')
module.exports = async (dvf, withdrawalData) => {
const url = dvf.config.api + '/v1/trading/w/fastWithdrawal'
const json = await dvf.createFastWithdrawalPayload(withdrawalData)
return post(url, { json, headers: { Authorization: dvf.config.apiKey} })
}