A collection of useful command-line scripts for interacting with the Solana ecosystem.
- tokens - list of supported [tokens]
- quote - qoute token swap
- swap - quote and swap tokens
- order - get the tokens swap order
- execute - get and exectute the tokens swap order
-
Install NodeJS and TypeScript
-
Clone the repository and navigate into it.
-
Switch to the required NodeJS version specified in the .nvmrc file:
nvm use -
Install dependencies from the package.json file:
npm install -
Create the
.envfile, use env.template as a guide. -
Make sure that scripts in the
./bindirectory are executable:chmod +x -
Set the "RESEARCH_CLI_PATH" env variable in
.bashrc:export RESEARCH_CLI_PATH="$HOME/work/src/research/cli" -
Configure aliases for running shell scripts in
.bashrc:alias tokens="cat $RESEARCH_CLI_PATH/tokens.json" alias quote="$RESEARCH_CLI_PATH/bin/quote.sh" alias swap="$RESEARCH_CLI_PATH/bin/swap.sh" alias order="$RESEARCH_CLI_PATH/bin/order.sh" alias execute="$RESEARCH_CLI_PATH/bin/execute.sh"