@gateway.fm/gtw-dvf-client-js
Version:
DVF client js lib with gateway.fm rpc endpoints
18 lines (15 loc) • 476 B
JavaScript
const wallet = {
type: 'tradingKey',
meta: {
starkPrivateKey: starkPrivKey
}
}
// NOTE: this can also be done when creating DVF instance by including wallet on
// dvfConfig.
dvf.util.attachStarkProvider(wallet)
const fastWithdrawalResponse = await dvf.fastWithdrawal(
// recipientEthAddress could be added here to send the withdrawal to address
// other then users registered address.
{ token: 'ETH', amount: 0.1 }
)
logExampleResult(fastWithdrawalResponse)