# Flux **Flux Network Operations** Core network endpoints for interacting with the broader Flux decentralized network. These APIs provide access to network statistics, node information, consensus data, and network-wide operations that facilitate the decentralized cloud infrastructure. **Network Services:** - Node discovery and registry - Network consensus information - Global network statistics - Peer-to-peer communication - Distributed coordination ## Starts Flux daemon - [GET /flux/startdaemon](https://docs.runonflux.io/fluxapi/flux/startdaemon.md): Tries to start Flux daemon running on the Flux node the call is run against without any extra parameters. ## Restarts Flux daemon - [GET /flux/restartdaemon](https://docs.runonflux.io/fluxapi/flux/restartdaemon.md): Tries to restart Flux daemon running on the Flux node the call is run against. Flux daemon is firstly stopped and then started without any extra parameters. ## Switch to master branch of FluxOS - [GET /flux/entermaster](https://docs.runonflux.io/fluxapi/flux/fluxentermaster.md): Tries to switch to master branch of FluxOS. ## Switch to development branch of FluxOS - [GET /flux/enterdevelopment](https://docs.runonflux.io/fluxapi/flux/fluxenterdevelopment.md): Tries to switch to development branch of FluxOS. ## Reindexes Flux daemon - [GET /flux/reindexdaemon](https://docs.runonflux.io/fluxapi/flux/reindexfluxb.md): Tries to reindex Flux daemon running on the Flux node the call is run against. Flux daemon is firstly stopped and then started with reindex flag. ## Updates Flux to the latest version - [GET /flux/updateflux](https://docs.runonflux.io/fluxapi/flux/updateflux.md): Updates Flux to the latest version available according to github master branch. Flux will restart its services after the update. ## Perform hard update to the latest version - [GET /flux/hardupdateflux](https://docs.runonflux.io/fluxapi/flux/hardupdateflux.md): Hard updates to latest version by removing node_modules and package-lock.json before executing git reset --hard and git pull. This may resolve any issues that may arise from Flux not being able to update using the call. Flux will restart its services after the update. ## Rebuild UI - Home of Flux - [GET /flux/rebuildhome](https://docs.runonflux.io/fluxapi/flux/rebuildzelfront.md): Rebuilds Home part of Flux. May help resolving frontend issues. ## Updates Flux daemon - [GET /flux/updatedaemon](https://docs.runonflux.io/fluxapi/flux/updatedaemon.md): Updates the Flux daemon of Flux node to the latest available version according to official Flux APT repository. Flux daemon is restarted with no extra parameters during this update. ## Updates Benchmark daemon - [GET /flux/updatebenchmark](https://docs.runonflux.io/fluxapi/flux/updatebenchmark.md): Updates the Benchmark daemon of Flux node to the latest available version according to official Flux APT repository. Benchmark daemon is restarted with no extra parameters during this update. ## Returns with the Flux debug log - [GET /flux/daemondebug](https://docs.runonflux.io/fluxapi/flux/fluxdebug.md): Returns with the debug log located in Flux data directory. ## Returns with the Benchmark debug log - [GET /flux/benchmarkdebug](https://docs.runonflux.io/fluxapi/flux/benchmarkdebuf.md): Returns with the debug log located in fluxbenchmark directory. ## Returns last lines of Flux debug log - [GET /flux/taildaemondebug](https://docs.runonflux.io/fluxapi/flux/tailfluxdebug.md): Returns last 100 lines known in the Flux debug log. ## Returns last lines of Benchmark debug log - [GET /flux/tailbenchmarkdebug](https://docs.runonflux.io/fluxapi/flux/tailbenchmarkdebug.md): Returns last 100 lines known in the Benchmark debug log. ## Returns with the Flux error log - [GET /flux/errorlog](https://docs.runonflux.io/fluxapi/flux/fluxerrorlog.md): Returns with the error log located in flux directory. ## Returns last lines of Flux error log - [GET /flux/tailerrorlog](https://docs.runonflux.io/fluxapi/flux/tailfluxerrorlog.md): Returns last 100 lines known in the Flux error log. ## Node Tier - [GET /flux/nodetier](https://docs.runonflux.io/fluxapi/flux/getnodetier.md): This call will display the tier of the node. ## Combined info - [GET /flux/info](https://docs.runonflux.io/fluxapi/flux/getfluxinfo.md): Combined info of statuses. ## Flux timezone - [GET /flux/timezone](https://docs.runonflux.io/fluxapi/flux/getfluxtimezone.md): This will return with the timezone of the server. ## Gets version of Flux - [GET /flux/version](https://docs.runonflux.io/fluxapi/flux/getfluxversion.md): Gets version of Flux running on the Flux node the call is run against as it is in package.json. ## Flux IP - [GET /flux/ip](https://docs.runonflux.io/fluxapi/flux/getfluxip.md): This will return with the IP address of the server that Flux is on. ## Flux static IP status - [GET /flux/staticip](https://docs.runonflux.io/fluxapi/flux/getfluxstaticip.md): This will return if FluxNode is running under a known static ip ISP/Org. ## Geolocation info - [GET /flux/geolocation](https://docs.runonflux.io/fluxapi/flux/getfluxgeolocation.md): This will return geolocation info. ## Admin's ZelID - [GET /flux/id](https://docs.runonflux.io/fluxapi/flux/getfluxid.md): This will return with the admin's ZelID. ## PGP identity - [GET /flux/pgp](https://docs.runonflux.io/fluxapi/flux/getpgp.md): This will return node pgp public key. ## Kadena Info - [GET /flux/kadena](https://docs.runonflux.io/fluxapi/flux/getfluxkadena.md): This call will display the user's Kadena address and chain ID. ## Admin's CruxID - [GET /flux/cruxid](https://docs.runonflux.io/fluxapi/flux/getfluxcruxid.md): This will return with the admin's CruxID. ## DOS state - [GET /flux/dosstate](https://docs.runonflux.io/fluxapi/flux/getdosstate.md): This will return with the DOS state that Flux is in from 0 to infinity and if it reaches 10 it gets banned. ## Gets IP's of connected peers - [GET /flux/connectedpeers](https://docs.runonflux.io/fluxapi/flux/connectedpeers.md): Gets list of IP addresses of outgoing connected peers. ## Gets info of connected peers - [GET /flux/connectedpeersinfo](https://docs.runonflux.io/fluxapi/flux/connectedpeersinfo.md): Gets list of ip addresses and rtt of the outgoing connected peers. ## List of incoming connections - [GET /flux/incomingconnections](https://docs.runonflux.io/fluxapi/flux/incomingconnections.md): Gets list of IP addresses of incoming connected peers. ## Gets info of incoming connections - [GET /flux/incomingconnectionsinfo](https://docs.runonflux.io/fluxapi/flux/incomingconnectionsinfo.md): Gets list of ip addresses and rtt of incoming connections. ## Check availability of Flux - [GET /flux/checkfluxavailability](https://docs.runonflux.io/fluxapi/flux/checkfluxavailability.md): Check if Flux is reachable and available using IP of the Flux's server. ## Check incoming/outgoing peers - [GET /flux/checkcommunication](https://docs.runonflux.io/fluxapi/flux/iscommunicationestablished.md): Check if there is enough incoming/outgoing peers. ## FluxOS uptime - [GET /flux/uptime](https://docs.runonflux.io/fluxapi/flux/fluxuptime.md): Return FluxOS uptime in seconds. ## Broadcast message to peers - [POST /flux/broadcastmessage](https://docs.runonflux.io/fluxapi/flux/broadcastmessagefromuserpost.md): Broadcast data message to peers that are connected. ## Broadcast message to peers - [GET /flux/broadcastmessage](https://docs.runonflux.io/fluxapi/flux/broadcastmessagefromuser.md): Broadcast data message to peers that are connected. ## Broadcast message to outgoing peers - [POST /flux/broadcastmessagetooutgoing](https://docs.runonflux.io/fluxapi/flux/broadcastmessagetooutgoingfromuserpost.md): Broadcast data message to peers on outgoing connections. ## Broadcast message to outgoing peers - [GET /flux/broadcastmessagetooutgoing](https://docs.runonflux.io/fluxapi/flux/broadcastmessagetooutgoingfromuser.md): Broadcast data message to peers on outgoing connections. ## Broadcast message to incoming peers - [POST /flux/broadcastmessagetoincoming](https://docs.runonflux.io/fluxapi/flux/broadcastmessagetoincomingfromuserpost.md): Broadcast data message to peers on incoming connections. ## Broadcast message to incoming peers - [GET /flux/broadcastmessagetoincoming](https://docs.runonflux.io/fluxapi/flux/broadcastmessagetoincomingfromuser.md): Broadcast data message to peers on incoming connections. ## Add peer option - [GET /flux/addpeer](https://docs.runonflux.io/fluxapi/flux/addpeer.md): This call gives option to add peers to outgoing connections. ## Remove peer option - [GET /flux/removepeer](https://docs.runonflux.io/fluxapi/flux/removepeer.md): This call does exact opposite of add and removes/drops a outgoing connected peer. ## Remove incoming peer - [GET /flux/removeincomingpeer](https://docs.runonflux.io/fluxapi/flux/removeincomingpeer.md): Remove a incoming connected peer. ## Open port on server - [GET /flux/allowport](https://docs.runonflux.io/fluxapi/flux/allowportapi.md): This will open a port on the server and adding it to the firewall rules. ## Adjust CruxID - [GET /flux/adjustcruxid](https://docs.runonflux.io/fluxapi/flux/adjustcruxid.md): This will add/update your CruxID. ## Adjust Kadena Account - [GET /flux/adjustkadena](https://docs.runonflux.io/fluxapi/flux/adjustkadenaaccount.md): Essentially rebuilds flux - use with caution! ## Start Benchmark - [GET /flux/startbenchmark](https://docs.runonflux.io/fluxapi/flux/fluxstartbenchmark.md): This call will start the benchmark which tests the hardware specifications and performance. ## Restart Benchmark - [GET /flux/restartbenchmark](https://docs.runonflux.io/fluxapi/flux/fluxrestartbenchmark.md): This call will restart the benchmark which tests the hardware specifications and performance. ## Soft Update Flux - [GET /flux/softupdateflux](https://docs.runonflux.io/fluxapi/flux/softupdateflux.md): This call will perform a soft update of Flux. ## Install Flux - [GET /flux/softupdatefluxinstall](https://docs.runonflux.io/fluxapi/flux/softupdatefluxinstall.md): This call will install Flux. ## Warning Log - [GET /flux/warnlog](https://docs.runonflux.io/fluxapi/flux/fluxwarnlog.md): This call returns the Flux warning log. ## Debug Log - [GET /flux/debuglog](https://docs.runonflux.io/fluxapi/flux/fluxdebuglog.md): This call returns the Flux debug log. ## Info Log - [GET /flux/infolog](https://docs.runonflux.io/fluxapi/flux/fluxinfolog.md): This call returns the Flux info log. ## Tail Warn Log - [GET /flux/tailwarnlog](https://docs.runonflux.io/fluxapi/flux/tailfluxwarnlog.md): This call returns the Flux tail warn log. ## Tail Debug Log - [GET /flux/taildebuglog](https://docs.runonflux.io/fluxapi/flux/tailfluxdebuglog.md): This call returns the Flux tail debug log. ## Tail Info Log - [GET /flux/tailinfolog](https://docs.runonflux.io/fluxapi/flux/tailfluxinfolog.md): This call returns the Flux tail info log. ## Local Folder Location - [GET /flux/backendfolder](https://docs.runonflux.io/fluxapi/flux/fluxbackendfolder.md): This call returns the local folder location for Flux. ## Map a specified port (UPnP) - [GET /flux/mapport](https://docs.runonflux.io/fluxapi/flux/fluxmapport.md): This call map a specified port (UPnP). ## Unmap a specified port (UPnP) - [GET /flux/unmapport](https://docs.runonflux.io/fluxapi/flux/fluxunmapport.md): This call unmap a specified port (UPnP). ## Show list with mappings (UPnP) - [GET /flux/getmap](https://docs.runonflux.io/fluxapi/flux/fluxgetmap.md): This call show message with mappings (UPnP). ## Show public IP address (UPnP) - [GET /flux/getip](https://docs.runonflux.io/fluxapi/flux/fluxgetip.md): This call show public IP address (UPnP). ## Show gateway address (UPnP) - [GET /flux/getgateway](https://docs.runonflux.io/fluxapi/flux/fluxgetgateway.md): This call show a message with gateway address (UPnP). ## To show the current user's Router IP setup. - [GET /flux/routerip](https://docs.runonflux.io/fluxapi/flux/fluxrouterip.md): To show the current user's Router IP setup in configuration file that is being used with FluxO. ## Update the current routerIP. - [GET /flux/adjustrouterip](https://docs.runonflux.io/fluxapi/flux/fluxadjustrouterip.md): Update the current routerIP that is being used with FluxOS. ## Show the current user's blocked ports list. - [GET /flux/blockedports](https://docs.runonflux.io/fluxapi/flux/fluxblockedports.md): Show the current user's blocked ports list. ## Update blocked port list. - [POST /flux/adjustblockedports](https://docs.runonflux.io/fluxapi/flux/fluxadjustblockedports.md): Update the current blocked port list that is being used by FluxOS. ## Show the current user's blocked repositories list. - [GET /flux/blockedrepositories](https://docs.runonflux.io/fluxapi/flux/fluxblockedrepositories.md): Show the current user's blocked repositories list. ## Update blocked repositories list. - [POST /flux/adjustblockedrepositories](https://docs.runonflux.io/fluxapi/flux/fluxadjustblockedrepositories.md): Update the current blocked repositories list that is being used by FluxOS. ## Show the current user's Api Port setup in configuration file that is being used by FluxOS. - [GET /flux/apiport](https://docs.runonflux.io/fluxapi/flux/fluxapiport.md): Show the current user's Api Port. ## Update Api Port setup in configuration file that is being used by FluxOS. - [GET /flux/adjustapiport](https://docs.runonflux.io/fluxapi/flux/fluxadjustapiport.md): Update Api Port. ## Show marketplace URL. - [GET /flux/marketplaceurl](https://docs.runonflux.io/fluxapi/flux/fluxmarketplaceurl.md): Show marketplace URL based on current development flag setup in configuration file that is being used with FluxOS. ## Restart FluxOS. - [GET /flux/restart](https://docs.runonflux.io/fluxapi/flux/fluxrestart.md): Restart FluxOS. ## Show system uptime. - [GET /flux/systemuptime](https://docs.runonflux.io/fluxapi/flux/fluxsystemuptime.md): Show system uptime in ms. ## Show nodejs entire versions object. - [GET /flux/nodejsversions](https://docs.runonflux.io/fluxapi/flux/fluxnodejsversions.md): Show nodejs entire versions object. ## Get all Flux IDs - [GET /flux/fluxids](https://docs.runonflux.io/fluxapi/flux/getfluxids.md): Get list of all Flux IDs associated with this node. ## Check if running on ArcaneOS - [GET /flux/isarcaneos](https://docs.runonflux.io/fluxapi/flux/isarcaneos.md): Check if the node is running on ArcaneOS (specialized Flux operating system). ## Stream chain preparation - [GET /flux/streamchainpreparation](https://docs.runonflux.io/fluxapi/flux/streamchainpreparation.md): Prepare for blockchain streaming operation. ## Stream blockchain data - [POST /flux/streamchain](https://docs.runonflux.io/fluxapi/flux/streamchain.md): Stream blockchain data to another node. ## Check application availability - [POST /flux/checkappavailability](https://docs.runonflux.io/fluxapi/flux/checkappavailability.md): Check if a specific application is available and accessible. ## Keep UPnP ports open - [POST /flux/keepupnpportsopen](https://docs.runonflux.io/fluxapi/flux/keepupnpportsopen.md): Maintain UPnP port mappings to keep them open.