
Running Indexer & API Server
Running Indexer
Run UXUY Indexer with the command indexer. Specify how UXUY Indexer can reach BlockChain node and where to store the database in the previous chapter.
/usr/local/bin/indexer -config=config.jsonRunning JSON RPC API Server
Run UXUY JSON RPC API Server with the command apiserver. Specify how API Server can reach the database.
If you use the same database you can use the same config.json, you can use a Master-Slave modes to host your MySQL, and copy the config.json to a new slave-db-config.json and config the slave database for your apiserver.
/usr/local/bin/apiserver -config=config.json
# /usr/local/bin/apiserver -config=slave-db-config.jsonThe default api server is hosting on localhost:6583. You can change it in your config file.
Last updated
Was this helpful?