UNPKG

dvf-client-js

Version:

<img src="https://avatars1.githubusercontent.com/u/56512535?s=200&v=4" align="right" />

9 lines (6 loc) 288 B
dvf.config.useTradingKey = true const nonce = Date.now() / 1000 const keyPair = sw.ec.keyFromPrivate(starkPrivKey, 'hex') const starkSignature = sw.sign(keyPair, nonce) const getDepositsResponse = await dvf.getDeposits(null, nonce, starkSignature) logExampleResult(getDepositsResponse)