Start the script to create initial values:
npm run update
If you had networks.json
before, the script compaire it and save difference into diff.json
.
If you have .env
parameters, the script also send difference to a Telegram chat.
networks.json
: array of filtered networks. Excluded if:id
,name
,title
orchain
key is excluded (internal parameters); withoutrpc
,explorers
orinfoURL
key; with API key.sources.json
: array of sources (mostly domain names). Created fromnetworks.json
and excluded if: none of RPCs are available or we have problems with requests.diff.json
: difference between previous and new versions ofnetworks.json
(created only if we havenetworks.json
and some difference).logs.txt
: errors here.
.env
variables:
NETWORKS_ENDPOINT
: https://chainid.network/chains.jsonTELEGRAM_API
: https://api.telegram.org/botBOT_KEY
: bot API keyCHAT_ID
: id of the chat where sending messages