SpieldSpield
Developers

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/sdk
import { 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);

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.

LayerTechnology
Smart contractsSoroban (Rust), on Stellar
Per-series contractsSR, Yield (PT/YT engine and the YT token), SR Market, Fixed-Rate Vault, Router, Strategy
TokensPT is a classic Stellar asset wrapped as a SAC. SR and YT are contract tokens.
Yield sourcesBlend USDC lending (mainnet and testnet). Tokenized US Treasuries, USTRY (mainnet since 27 Nov 2026, and testnet).
ReadsSoroban RPC simulateTransaction (free, no signing)
WritesBuild, simulate, sign (wallet), submit, poll
Client@spield/sdk (recommended), or @stellar/stellar-sdk directly

The shape of an integration

Rendering diagram…
  • 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: 10000000 is 1.0. See Tokens.
  • Fixed-point rates. Rates and prices use 12-decimal fixed point. 1000000000000 is 1.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.

On this page