Prerequisites
- Docker and Docker Compose installed
- Stellar CLI installed
Quick Start
1. Clone the Anchor Platform repository
2. Navigate to the quick-run directory
3. Start all services
4. Verify the platform is running
Wait a few moments for services to initialize, then verify the platform is responding:5. Check service status
What’s Included
Thequick-run setup includes:
- docker-compose.yaml - Complete service definitions with all dependencies
- dev.env - Pre-configured environment variables
- config/ - Required configuration files:
assets.yaml- Asset definitionsclients.yaml- Client configurationsreference-config.yaml- Reference server settingsstellar.localhost.toml- SEP-1 TOML file
Testing with Stellar Demo Wallet
You can test the Anchor Platform using the Stellar Demo Wallet:- Open the Stellar Demo Wallet in your browser.
- Click on “Generate keypair for new account (testnet only)” button.
- Click on the “Create Account” button next to the PUBLIC key.
- You should now see
XLMavailable under the Balances section, indicating your account is loaded. - Click on “Add home domain” and enter the following URL:
This connects the demo wallet to your local Anchor Platform instance running on port 8080.
- You should now be able to perform SEP transactions (deposits, withdrawals, etc.) with your local Anchor Platform instance.
Customizing Configuration
To modify settings:- Edit
dev.envfor environment variables - Edit files in
config/for service-specific configurations - Restart services:
docker-compose restart
Stopping Services
To stop all services:How to implement your business callback server
Once you have the Anchor Platform running, you can replace the reference server with your own business callback server implementation. This allows you to implement your own business logic for handling deposits, withdrawals, and other anchor operations.1. Shutdown the reference business server
After the Anchor Platform is started and running, stop the reference server service:2. Implement and run your own reference server
Implement your own callback server that implements the Anchor Platform callback API. You can use the kotlin-reference-server as a reference implementation to understand the required endpoints and data structures. Ensure your callback server is accessible athttp://localhost:8091 (or the configured endpoint) and that the Anchor Platform can reach it.
Your server should:
- Listen on port 8091 (or configure the platform to use a different port)
- Implement the required callback endpoints as specified in the Anchor Platform API documentation
- Handle business logic for:
- Fee calculation
- Exchange rate determination
- Transaction status updates
- Customer information (KYC) management
- Deposit and withdrawal processing