OptiFi cranker program - it will contineously try sending transations to OptiFi onchain Program
- Create a new file
.env
under the root of the project with the following contents:
NODE_ENV=development
OPTIFI_PROGRAM_ID=<YOUR_OPTIFI_PROGRAM_ID>
OPTIFI_WALLET=<YOUR_SOLANA_WALLET_FILE_PATH>
CLUSTER=<devnet or mainnet>
RPC_ENDPOINT=<YOUR_SOLANA_RPC_ENDPOINT>
RPC_ENDPOINT_2=<YOUR_SECOND_SOLANA_RPC_ENDPOINT>
RPC_ENDPOINT_3=<YOUR_THIRD_SOLANA_RPC_ENDPOINT>
RPC_ENDPOINT_4=<YOUR_FORTH_SOLANA_RPC_ENDPOINT>
- Install dependencies
npm i
- Start the program
npm start