1. Install the Compose CLI Extension
If you already have the Goldsky CLI installed, you’ll just need to install the Compose extension.goldsky compose <verb> before installing the extension, it prints an install hint and exits; it no longer auto-installs.
For macOS/Linux:
Windows users need to have Node.js and npm installed first. Download from nodejs.org if not already installed.
2. Create your app
Create a new Compose project with a working Bitcoin oracle example:- Prompt you for a project name and create the app under that directory
- Scaffold a complete example app with a working Bitcoin oracle
3. Start the app locally
cd into the project directory that was just created:
--fork-chains allows you to run a smart wallet locally. You can also use a private key wallet for your local Compose app. See more here.
Your Compose application is now running! The server starts on port 4000 by default. If 4000 is taken, start walks up to port 4009 and prints Port 4000 is in use, using <port> instead.. To pin an exact port, pass -p, --port <port>; start fails fast if that port is taken.
You can test triggering a task like so: