Source code for StrategyTribe, an open source project dedicated to crowdsourcing and crowdfunding OSINT locating the cryptowallets of threat actors.
This is a work in progress.
git clone <repo_url>
cd strategy-tribe
StrategyTribe runs with a Moralis backend. Create one here. Once created, add the server_url
and the application_id
as env variables.
Create a .env.local
on the root of the strategy-tribe folder:
//On your .env.local
NEXT_PUBLIC_SERVER_URL = <your_server_url>
NEXT_PUBLIC_APP_ID = <your_server_app_id>
This url will depend on what network was picked when creating the server.
//On your .env.local
NEXT_PUBLIC_ETHERSCAN_URL = https://rinkeby.etherscan.io/address/
If deploying to something like Netlify of Vercel, update this domain.
//On your .env.local
NEXT_PUBLIC_DOMAIN= http://localhost:YOURPORT
In src/moralis/cloud
is all the code Moralis cloud functions need to work. In the dashboard of Moralis, click on your server, then on the 'Cloud Functions' button. Click there and there will be a command template. Now:
- Install Moralis CLI.
- Copy the template command.
- Point the CLI to the
src/moralis/cloud
folder. - Run it.
The command should look something like this, with the last section being the path to the cloud
folder:
moralis-admin-cli watch-cloud-folder --moralisApiKey <your_key> --moralisApiSecret <your_api_secret> --moralisSubdomain <your_subdomain> --autoSave 1 --moralisCloudfolder ./src/moralis/cloud
This command will listen to changes in the cloud folder and upload them to the moralis server.
The server has its own env variables, Moralis calls them "parameters". Set them up in
Your Dashboard > Your server > Dashboard > Config
.
Add a new parameter and name it CHAIN_CODE
. This is the chain code of the blockchain the server is running on. For example, mainnet would be 0x1
and rinkeby 0x4
. Must be the same as the one picked when creating the server.
Run:
npm install
npm run dev