update readme

This commit is contained in:
Miro Metsänheimo 2019-10-13 17:42:36 +03:00
commit 5e1249f44e

View file

@ -25,6 +25,7 @@ npm install nanocurrency-web
| WARNING: do not use any of the keys or addresses listed below to send real assets |
| --- |
Wallet handling
```
import { wallet } from 'nanocurrency-web'
@ -47,8 +48,8 @@ const accounts = wallet.accounts(seed, from, to)
The returned wallet JSON format is as follows:
{
mnemonic: 'edge defense waste choose enrich upon flee junk siren film clown finish luggage leader kid quick brick print evidence swap drill paddle truly occur',
seed: '0dc285fde768f7ff29b66ce7252d56ed92fe003b605907f7a4f683c3dc8586d34a914d3c71fc099bb38ee4a59e5b081a3497b7a323e90cc68f67b5837690310c',
accounts: [
seed: '0dc285fde768f7ff29b66ce7252d56ed92fe003b605907f7a4f683c3dc8586d34a914d3c71fc099bb38ee4a59e5b081a3497b7a323e90cc68f67b5837690310c',
accounts: [
{
accountIndex: 0,
privateKey: '3be4fc2ef3f3b7374e6fc4fb6e7bb153f8a2998b3b3dab50853eabe128024143',