improve example
This commit is contained in:
parent
11f51d8734
commit
7d607c5fe0
@ -22,7 +22,7 @@ Using it in Node.js:
|
|||||||
```javascript
|
```javascript
|
||||||
var bitcore = require('bitcore');
|
var bitcore = require('bitcore');
|
||||||
|
|
||||||
assert(bitcore.Address.isValid(address));
|
assert(bitcore.Address.isValid('126vMmY1fyznpZiFTTnty3cm1Rw8wuheev'));
|
||||||
var simpleTx = new bitcore.Transaction();
|
var simpleTx = new bitcore.Transaction();
|
||||||
var simpleTx.from(unspent).to(address, amount);
|
var simpleTx.from(unspent).to(address, amount);
|
||||||
simpleTx.sign(privateKey);
|
simpleTx.sign(privateKey);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user