@gateway.fm/gtw-dvf-client-js
Version:
DVF client js lib with gateway.fm rpc endpoints
10 lines (6 loc) • 312 B
JavaScript
const waitForDepositCreditedOnChain = require('./helpers/waitForDepositCreditedOnChain')
const depositResponse = await dvf.deposit('ETH', 0.0170, starkPrivKey)
if (process.env.WAIT_FOR_DEPOSIT_READY === 'true') {
await waitForDepositCreditedOnChain(dvf, depositResponse)
}
logExampleResult(depositResponse)