Technical Spec / Developer Interfaces

Refract is designed with developers in mind, offering a straightforward interface and modular contract architecture that enables flexible integration, strategy creation, and third-party tooling.


Core Contract Interfaces Refract exposes core contracts via Anchor-compatible programs that handle deposits, strategy routing, and LST issuance. Developers can interact with functions such as stakeWithStrategy(strategy_id), mintLST(), redeemLST(), and getStrategyMetadata(strategy_id) to build applications on top of Refract.


Strategy Registry All supported strategies are stored in an on-chain registry. Developers and DAOs can submit proposals to add new strategies, including validator sets, staking pools, or hybrid strategies. Once approved, each strategy is assigned a unique ID that can be used in staking transactions.


LST Token Metadata Branded LSTs follow SPL standards and embed metadata that includes the strategy ID, validator profile, and yield origin hash. This allows frontends and aggregators to accurately display token provenance and APY analytics.


SDKs and Tooling Refract will offer TypeScript and Rust SDKs for easy integration. These include wrapper functions for interacting with the router, querying strategies, and building transaction bundles that combine staking + LP provisioning or bridging.


Bridge Adapters To facilitate cross-chain interoperability, Refract supports OFT-like adapters for LayerZero and token-wrapping adapters for Wormhole. Developers can integrate these into dApps to enable one-click bridging or remote minting/burning.


Security & Permissions Critical contract functions are guarded by role-based access controls and multisig governance. Developers can query current strategy statuses and access logs to build safe, transparent integrations.


Through this developer-first approach, Refract becomes not just a product but a foundation — enabling others to build sophisticated yield applications, staking products, and financial primitives on top of Solana’s validator economy.

Last updated