Installing an IdA Node is quite simple, but you need to make sure you previously install all the required technologies. Mainly the dependencies concern NodeJS, MongoDB and the official Scrypta wallet.
We recommend deploying on a device with Ubuntu 16.04 and at least 2GB of RAM.
install.sh file will install all the dependencies for you, we will analyze the script directly on this page. The important thing is to edit the
.env file after installation, correctly entering all the fields; in particular:
RPCUSER: The same value inserted into the wallet, by default is "lyrarpc". It is essential to edit this field in both
RPCPASSWORD: The same value inserted into the wallet, by default is "lyrapassword". It is essential to edit this field in both
RPCPORT: It must be
42223 and is already preset.
RPCADDRESS: It must be
localhost (if the wallet is installed inside the same machine). Alternatively, the IP address of an external machine must be entered.
LYRAPATH: Path pointing to the folder containing the
DEBUG:Needed to work with active debug mode, which we recommend.
DB_PORT: The connection port for MongoDB, by default is
DB_HOST: It must be
localhost if the database is installed inside the same machine. Alternatively, the IP address of an external machine must be entered.
COIN: by default it is
LYRA, it could be modified for any integration with other blockchains.
SYNC: by default is
true and is used to activate or deactivate automatic synchronization. It can be disabled for debugging reasons.
AIRDROP: the amount of LYRA coin that IdA Node sends each time an address is initialized.
SERVERMODE: parameter that establishes whether the system must install a "Tray Icon" in the topbar to quickly close the Ida Node. By default it is
TESTNET: It establishes if the IdaNode is in testnet mode or not, the value can be entered as
LYRADATAFOLDER: Path pointing to the folder containing the Scrypta blockchain files. Usually it is
It is essential to successfully start the bootstrap file construction process.
To install the Ida Node via the
install.sh script you need to use the following commands:
cd ~git clone https://github.com/scryptachain/scrypta-idanodejscd scrypta-idanodejschmod 777 install.sh./install.sh
At this point we edit the
lyra.conf file, through the
nano ~/.lyra/lyra.conf command and we change the
rpcpassword with two random values:
Now we modify our
.env file through the
nano ~/scrypta-idanodejs/.env command and modify the parameters:
At this point we are ready to test our configuration through the command
npm run dev. If so, we will see a result similar to this:
Scrypta IdaNode listening at port 3001. Public IP is: 188.8.131.52LYRA wallet successfully connected.Database connected successfully.Starting database check.Collection settings created.Collection transactions created.Checking index address of collection transactionsChecking index txid of collection transactionsChecking index time of collection transactionsChecking index block of collection transactionsSwarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTSwarm listening on /ip4/10.61.255.119/tcp/4002/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTSwarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTSwarm listening on /p2p-circuit/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTSwarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/4002/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTSwarm listening on /p2p-circuit/ip4/10.61.255.119/tcp/4002/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTSwarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/4003/ws/ipfs/QmcTiDC92gos8rZJNPj5CwToPUP597CQqFvRfxPCY3ZHvTChecking compound index ["address","txid"] of collection transactionsCollection received created.Checking index address of collection receivedChecking index block of collection receivedChecking index uuid of collection receivedChecking index collection of collection receivedChecking index protocol of collection receivedChecking compound index ["txid","address"] of collection receivedCollection written created.Checking index address of collection writtenChecking index block of collection writtenChecking index uuid of collection writtenChecking index collection of collection writtenChecking index protocol of collection writtenChecking compound index ["uuid","block"] of collection writtenCollection unspent created.Checking index address of collection unspentChecking index txid of collection unspentChecking compound index ["txid","vout"] of collection unspentDatabase and tables are ok.Starting block synchronization.FOUND 428314 BLOCKS IN THE BLOCKCHAIN
Now the IDA Node will start to synchronize all the data in the blockchain.
Congratulations you have installed the Node IdA!