1 | # Scrypta-Core NPM
|
2 |
|
3 | <p><a href="https://camo.githubusercontent.com/4e892209b4b1e2d1a773ec97e544a92f068a6f0b/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f333136382f312a31674778414b57714b5135577a635170755f766932412e6a706567" target="_blank" rel="noopener noreferrer"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://camo.githubusercontent.com/4e892209b4b1e2d1a773ec97e544a92f068a6f0b/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f333136382f312a31674778414b57714b5135577a635170755f766932412e6a706567" alt="" data-canonical-src="https://miro.medium.com/max/3168/1*1gGxAKWqKQ5WzcQpu_vi2A.jpeg" /></a></p>
|
4 | <h2 style="text-align: center;"><a id="user-content-scrypta-identity-framework" class="anchor" href="https://github.com/scryptachain/scrypta-identity-framework/new/master?readme=1#scrypta-identity-framework" aria-hidden="true"></a><strong>Scrypta Core</strong></h2>
|
5 | <p style="text-align: center;">JS implementation of main wallet features.</p>
|
6 | <p style="text-align: center;"><a title="English — Scrypta Wiki" href="https://en.scrypta.wiki/core/" target="_blank" rel="nofollow noopener"><strong>Wiki English</strong></a> · · · <a title="Italiano — Scrypta Wiki" href="https://it.scrypta.wiki/core/" target="_blank" rel="nofollow noopener"><strong>Wiki italiano</strong></a></p>
|
7 |
|
8 | <br>This is the main client side library of Scrypta Blockchain, written in NodeJS.
|
9 |
|
10 | You can use this version by installing it directly from npm:
|
11 |
|
12 | ```npm install --save @scrypta/core```
|
13 |
|
14 | # Use your own IdaNodes
|
15 |
|
16 | To override the IdaNodes list you've to rewrite the array like this:
|
17 |
|
18 | ```
|
19 | let ScryptaCore = require('@scrypta/core')
|
20 | let scrypta = new ScryptaCore
|
21 | scrypta.staticnodes = true
|
22 | scrypta.mainnetIdaNodes = ['http://localhost:3001', 'https://anotheridanode.com']
|
23 | ```
|
24 |
|
25 | # Scrypta-Core CLI (WIP)
|
26 |
|
27 | If you want to use the module as a CLI you have to run:
|
28 |
|
29 | ```sudo npm link```
|
30 |
|
31 | Then you'll be able to run commands like:
|
32 | ```scrypta getinfo```
|
33 |
|
34 | This feature is a work in progress and will be released soon.
|
35 |
|
\ | No newline at end of file |