Using a script
Clusters can be selected using a NodeJS script running in a server that periodically invokes the selection function in the contract. Example repository for such a script is available here.
Installation
NodeJS can be installed using instructions here.
Dependencies can be installed using npm i.
Usage
Create a .env file based on .env.example. Fill the following fields
# url for Arbitrum One RPC
ARB_RPC_URL=
# Private key of the address used to send txs for cluster selection
SIGNING_KEY=
# Address of the cluster selector contract
CLUSTER_SELECTOR_ADDRESS=
CLUSTER_SELECTOR_ADDRESS for ETH clusters on Arbitrum One mainnet is 0xf1E4c2d4B2996C7c34b5a6136861D7385Cb0E843
Script to select clusters can be run by using npm start.