monero-nodejs-libwallet
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -119,2 +119,3 @@ export = monero; | ||
restoreMultisigTransaction(sign: string): Promise<Transaction>; | ||
close(storeWallet?: boolean): Promise<void>; | ||
} | ||
@@ -131,3 +132,3 @@ | ||
function setupLog(level: number, output?: string): void; | ||
function setupLog(level: 0 | 1 | 2 | 3 | 4, output?: string): void; | ||
function createWallet(options: { | ||
@@ -134,0 +135,0 @@ path: string, |
{ | ||
"name": "monero-nodejs-libwallet", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Monero libwallet native addon. Under development at the moment", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -190,2 +190,10 @@ # monero-nodejs-libwallet | ||
### close | ||
Closes wallet asynchronously. Has one optional boolean argument to say to store wallet before closing (`false` by default). | ||
```js | ||
wallet.close(true) | ||
.then(() => {console.log("wallet closed")}) | ||
.catch((e) => {console.log("unable to close wallet: " + e)}); | ||
``` | ||
### on | ||
@@ -192,0 +200,0 @@ Subscibes on wallet emitted events: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1979187
32202
537