@lombard.finance/sdk 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,20 @@ npm i web3@^4 axios@^1 bignumber.js@^9 @bitcoin-js/tiny-secp256k1-asmjs@2.2.3 bi
|
|
|
22
22
|
|
|
23
23
|
All methods are documented with JSDoc comments. You can use your IDE's autocomplete feature to see the available methods and their parameters.
|
|
24
24
|
|
|
25
|
+
### Importing
|
|
26
|
+
|
|
27
|
+
If you are using a module bundler like Vite, Webpack or Rollup, you can import the package like this:
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { getDepositBtcAddress } from '@lombard.finance/sdk';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If you are using a commonjs module system, you can import the package like this:
|
|
34
|
+
|
|
35
|
+
```javascript
|
|
36
|
+
const { getDepositBtcAddress } = require('@lombard.finance/sdk');
|
|
37
|
+
```
|
|
38
|
+
|
|
25
39
|
### API Methods
|
|
26
40
|
|
|
27
41
|
- API based
|