Skip to main content
These docs serve two readers. If you trade in the Shield Swap app, the Guides tab’s Start and Trade pages each open with an app section, and you can stop reading when the programmatic sections begin. If you are building against Shield Swap, use the shortest path that matches the state and risk your system must own.

Trading in the app

Start with Start with Shield Swap, then Fund your wallet. Quote, Swap, and Swap history and recovery each begin with an In the app section. Manage positions covers liquidity in the app.

Application integrators

Begin with indexed REST data. Use the TypeScript SDK or direct program calls if the application must submit Shield transactions. Keep these facts in view:
  • A swap and its claim are separate transactions.
  • Wallets must reserve input records, preserve change, and store returned records.
  • Q128.128 values use u256::U256 with hi and lo limbs.
  • Pool parsing must not expect legacy scale0 or scale1 fields.
  • Public position accounting and PositionNFT ownership are different state.
  • Public market data does not require credentials. Routes and wallet-specific data require an authenticated session or API token.

Traders and wallet teams

The transaction’s token IDs, amount, route, output, refund, price movement, and timing remain public. The intended confidentiality property keeps the participant address out of ordinary public market mappings. Read Trader workflow, then Failures and recovery.

Liquidity teams

Bind every position to one deployment, pool key, token ID, and current PositionNFT. The same logical pool in a different deployment is different state. Fee fractions are attributed when earned using active liquidity. Later liquidity cannot receive prior residual fee dust.

Reviewers

The protocol exposes controls and encrypted investigator records. It does not supply key custody, case management, retention rules, screening, jurisdictional policy, or deployment evidence. Treat a deployment as identified only when its network, program ID, edition, checksum, dependencies, admin state, approved tokens, active pools, and pause state have been independently verified.