Skip to main content
Ankara Chain’s Stellar contracts are written in Rust and compiled to WebAssembly for deployment on the Stellar network via Soroban (Stellar’s smart contract platform). They mirror the functionality of the EVM contract suite — the same six asset templates, the same factory architecture, the same escrow and ramp settlement contracts — but are implemented as Soroban contracts invokable with the Stellar SDK. All testnet contracts are live and verified on-chain.

Deployed testnet addresses

These contracts are live on Stellar testnet as of July 14, 2026. Deployer: GAF4RGTNO2HKR754HDQRK4UZCPDN7F3T7QPZQE76UAJZSUUDICD43JPS.
The Collateral Vault’s borrowed asset on testnet is the native XLM Stellar Asset Contract (SAC): CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC. This is a testnet demo stand-in only. The vault is configured at 60% LTV and a 75% liquidation threshold.
You can inspect all contracts on the Stellar testnet explorer: stellar.expert/explorer/testnet

SDK parity with EVM

StellarAdapter implements the same IAdapter interface as EVMAdapter. This means TokenFactory, AssetRegistry, EscrowManager, RampManager, and CollateralVault work identically regardless of which chain you configure — swap network: "polygon" for network: "stellar-testnet" and the same application code runs on Stellar.

Stellar-specific authentication

Server-side: stellarSecretKey

For CLI scripts and backend services, pass your Stellar secret seed (starts with S) directly:
Never expose stellarSecretKey in a browser application, client-side bundle, or any code that runs on untrusted machines. Use stellarSigner with Freighter in all browser contexts.

Browser: stellarSigner with Freighter

For frontend applications, pass a StellarExternalSigner that wraps the Freighter wallet API. Freighter’s object matches the StellarExternalSigner shape exactly:
The Freighter wallet prompts the user to sign each transaction in-browser. The secret key never touches your application.

Soroban RPC endpoint

The built-in testnet RPC is https://soroban-testnet.stellar.org. For Stellar Mainnet, there is no official free public Soroban RPC — you must supply your own:

Overriding factory addresses

The testnet factory addresses are built into the SDK defaults for stellar-testnet. If you deploy your own factory contracts (e.g. for a private Stellar network or after a new testnet reset), pass them explicitly:

Source code

The Stellar contracts live in packages/contracts-stellar in the open-source repository. The deployment script is scripts/deploy-testnet.sh and the machine-readable deployment record is deployments.testnet.json. github.com/ankarachain/ankara-core/tree/main/packages/contracts-stellar