Prerequisites
- Node.js 18+
- A Stellar testnet account + secret key (
S...) - Testnet XLM (for fees)
Step 1 — Install the SDK
Step 2 — Initialise Your Project
Create a new config and pickStellar Testnet (Soroban) when prompted:
.env will include:
Step 3 — Set the Token Factory Address
You need a deployedTokenFactory contract ID on Stellar.
Option A: Use the existing testnet deployment (recommended)
Use the TokenFactory address from the repo’s Stellar deployment list: Then set it inankara.config.json:
Option B: Deploy your own factories
If you want your own factory addresses, deploy the Soroban contracts from:stellar-cli identities (not STELLAR_SECRET_KEY) and prints the contract IDs you can paste into ankara.config.json.
Step 4 — Deploy a Token
Deploy a token using the sameankara deploy flow as EVM networks:
ankara.config.json.
Step 5 — Mint Tokens
Step 6 — Create a Milestone Escrow Deal
To deploy aMilestoneEscrow, you need an EscrowFactory address in ankara.config.json (already shown in Step 3 if you used the existing testnet deployment).
Deploy an escrow:
CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC
Using the SDK Directly
For programmatic use in your app:Next Steps
Stellar Overview
How the Soroban contracts map to the same SDK API as EVM networks.
CLI Commands
Full reference for every
ankara command.Smart Contracts
Architecture, roles, and upgrade patterns.
Escrow
Milestone-based escrow deals for tranche-based payments.