forked from PsychicCat/monero-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.js
35 lines (28 loc) · 767 Bytes
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var xdnWallet = require('./lib/wallet');
var Wallet = new xdnWallet();
// examples
// Wallet.integratedAddress().then(function(result){
// console.log(result);
// });
// Wallet.balance().then(function(response){
// console.log(response);
// });
//
// Wallet.address().then(function(response){
// console.log(response);
// });
//
// Wallet.height().then(function(height){
// console.log(height);
// });
//
Wallet.getTransfers().then(function(result){
console.log(result);
});
//var destination = {};
//destination.address = 'ddcgpCXeQ5JSyuKtGPBMwoZZfwpbyeGxi2xtpmyqRJ9i8otyo29rdNGGUteGPWb5y5V6dkLHuzZJCMSV4P53EE6r1nAjbMSNo';
//destination.amount = 1;
//
//Wallet.transfer(destination).then(function(result){
// console.log(result);
//});