Developer overview
Build on Spield. An overview of the SDK, the per-series contracts, the tokens, and the integration paths for reading state and composing fixed-income products on Stellar.
Spield is built on Stellar's Soroban smart contracts, and its tokens and contracts are open and composable. This section is for developers integrating Spield into an app, indexing its data, or building products on top of PT and YT.
What this section covers
These docs describe Spield's public interface: the SDK, the contract entry points you call, the tokens you hold, the state you can read and the events you can index. You do not need anything else to integrate.
Where to start
The fastest path is the TypeScript SDK. It picks the series, converts amounts, adds trustlines, simulates, signs and confirms.
npm install @spield/sdkimport { SpieldClient } from '@spield/sdk';
const spield = new SpieldClient(); // testnet; use mainnet() for the public network
await spield.loadSeries();
const info = await spield.series('testnet-blend-3').getInfo();
console.log(info.impliedApyPct, info.actions);@spield/sdk
Install, choose a series, read, buy PT, redeem, wallets, errors.
Architecture
The six contracts of a series, how they call each other, and the USTRY family.
Contracts
The public entry points of each contract, reads and writes.
Tokens
SR, PT, YT, USDC, USTRY and its claim tokens, and how to handle their units.
Reading state
Positions, prices, solvency and series status. Free, no signing.
Integrating
Send transactions with the SDK or with raw contract calls.
Events
The on-chain events Spield emits, for dashboards and indexers.
Contract addresses
Every series on mainnet and testnet, and how to discover new ones.
How Spield is organized
Spield runs in series. A series is a complete set of contracts with one fixed, immutable maturity. A new maturity is a new series, so there is no "the" contract address. You choose a series by id.
| Layer | Technology |
|---|---|
| Smart contracts | Soroban (Rust), on Stellar |
| Per-series contracts | SR, Yield (PT/YT engine and the YT token), SR Market, Fixed-Rate Vault, Router, Strategy |
| Tokens | PT is a classic Stellar asset wrapped as a SAC. SR and YT are contract tokens. |
| Yield sources | Blend USDC lending (mainnet and testnet). Tokenized US Treasuries, USTRY (mainnet since 27 Nov 2026, and testnet). |
| Reads | Soroban RPC simulateTransaction (free, no signing) |
| Writes | Build, simulate, sign (wallet), submit, poll |
| Client | @spield/sdk (recommended), or @stellar/stellar-sdk directly |
The shape of an integration
- Reads are free simulations. Query positions, prices and solvency with no wallet and no fees.
- Writes are standard Soroban transactions signed by the user's wallet.
- Events let you rebuild a series' activity for dashboards or analytics.
Conventions used in these docs
- Base units. All token amounts on chain are integers in base units. USDC, SR, PT and YT use 7 decimals:
10000000is1.0. See Tokens. - Fixed-point rates. Rates and prices use 12-decimal fixed point.
1000000000000is1.0. - Function names are shown exactly as they appear on chain (snake_case), for example
mint_py. - Compare
CODE:ISSUER. PT assets share a code across series, so always compare the issuer too.
Where Spield is live
Spield v2 has been live on mainnet since September 2026. Three mainnet series are live:
mainnet-blend-3, mainnet-ustry-1 and mainnet-ustry-2 (launched 27 November 2026). Blend
Series 1 and 2 have matured and are redeem-only. Testnet has live series too. See
Contract addresses for every series.
Redeem at maturity
What to do when a series matures. Redeem PT 1:1, redeem vault receipts, claim YT yield, remove liquidity, and unwrap SR. Works for the matured mainnet series.
@spield/sdk
The TypeScript SDK for Spield. Pick a series, read markets and positions, lock a fixed rate, trade yield and redeem, on mainnet and testnet.