SDK Reference
SDK Reference
Table of Contents
1. Installation
Peer Dependencies
Requirements
Requirement
Version
2. Configuration
Environment Variables
3. Client Initialization
Client Properties
Program IDs
4. Core Types
Token Types
Account Types
5. Transfer Hook Operations
Verify Transfer Hook
Get SecurityConfig
Simulate Transfer
Check Wallet Eligibility
6. Custody Oracle
Get Custody Attestation
Verify Ed25519 Signature
Watch Custody (Real-Time)
7. NAV Oracle (Module 2)
Get NAV Oracle
Compute NAV Deviation
Watch NAV (Real-Time)
8. Classification Oracle (Module 3)
Get Classification Oracle
Watch Classification (Real-Time)
9. Holding Period
Get Holding Period Status
Batch Holding Period Query
PDA Derivation
10. CEDEX Trading
Place Order
Cancel Order
Get Open Orders
Estimate Swap Output
11. Portfolio Management
Get Portfolio
Get Position Detail
12. Market Data
List Markets
Get Order Book
Get Recent Trades
Get OHLCV (Candlestick Data)
13. WebSocket Subscriptions
Subscribe to Order Book
Subscribe to Trades
Subscribe to Custody Oracle
Subscribe to NAV Oracle (Module 2)
Subscribe to Classification Oracle (Module 3)
Subscribe to Circuit Breaker Events
Disconnect
14. Error Handling
RwaTokensError Class
Error Code Registry
Code
Name
Category
Recoverable
Module Scope
Action
Error Recovery Pattern
15. Utilities
PDA Derivation
Format Helpers
Anchor IDL
16. Security Best Practices
Wallet Key Management
Transaction Verification
Rate Limiting
17. Network Configuration
Devnet
Mainnet
Localnet (Development)
18. Examples
Example 1: Verify an ST22 Token (any module)
Example 2: Check Holding Period Before Selling
Example 3: Real-Time Custody Monitoring (cross-module)
Example 4: Module 2 NAV Monitoring
Example 5: Module 3 Federal-Action Monitoring
Example 6: Simulate Before Trading (module-aware)
Changelog
v1.0.0 (Q3 2026)
License
Related Documentation
Last updated
Was this helpful?