Sui Network RPC API
Enterprise-Grade Infrastructure for Sui's Object-Centric Blockchain
Sui represents a paradigm shift in blockchain architecture, introducing an object-centric data model that enables parallel transaction execution and horizontal scaling. Dwellir provides enterprise-grade RPC infrastructure for Sui, empowering developers to build high-performance decentralized applications with unprecedented throughput and sub-second finality.
Why Choose Dwellir for Sui Development?
Lightning-Fast Performance
- Sub-second finality: Experience near-instant transaction confirmation
- Parallel execution: Leverage Sui's unique ability to process independent transactions simultaneously
- Optimized routing: Global infrastructure ensures minimal latency worldwide
- High throughput: Support for Sui's capability of 120,000+ TPS
Enterprise Reliability
- 99.99% uptime SLA: Industry-leading service level agreement
- Redundant infrastructure: Multiple node clusters across geographic regions
- Automatic failover: Seamless switching between nodes for uninterrupted service
- 24/7 monitoring: Proactive issue detection and resolution
Developer-First Features
- Full JSON-RPC support: Complete implementation of Sui's JSON-RPC API
- WebSocket subscriptions: Real-time event streaming for responsive applications
- Batch requests: Optimize performance with multi-call support
- Detailed analytics: Monitor usage patterns and optimize your applications
Sui's Unique Architecture
Object-Centric Model
Unlike traditional blockchains that organize data around accounts, Sui revolutionizes blockchain architecture with its object-centric approach:
- Objects as first-class citizens: Every piece of data is an object with unique identifiers
- Direct object manipulation: Transactions directly reference and modify objects
- Ownership types: Shared, owned, and immutable objects enable different consensus paths
- Composability: Objects can contain other objects, enabling complex data structures
Move Programming Language
Sui utilizes Move, a resource-oriented programming language designed for safe asset management:
- Resource safety: Prevents duplication and accidental deletion of digital assets
- Formal verification: Mathematical proofs ensure contract correctness
- Module system: Reusable code components for efficient development
- Native asset handling: Built-in support for fungible and non-fungible tokens
Consensus Innovation
Sui's consensus mechanism optimizes for different transaction types:
- Simple transactions: Skip consensus for single-owner object modifications
- Complex transactions: Narwhal and Bullshark consensus for shared objects
- Causal ordering: Maintains transaction dependencies without total ordering
- Byzantine fault tolerance: Secure against malicious actors
API Categories
Core Transaction APIs
Execute and manage transactions on the Sui network:
sui_executeTransactionBlock
: Submit signed transactions for executionsui_dryRunTransactionBlock
: Simulate transaction execution without committingsui_devInspectTransactionBlock
: Debug transactions with detailed execution tracessui_getTransactionBlock
: Retrieve comprehensive transaction information
Object Query APIs
Access and query Sui's object-centric data model:
sui_getObject
: Retrieve object data by IDsui_multiGetObjects
: Batch query multiple objects efficientlysuix_getOwnedObjects
: List all objects owned by an addresssuix_getDynamicFields
: Access dynamic object fields
Coin Management APIs
Handle SUI tokens and custom coins:
suix_getBalance
: Query balance for specific coin typessuix_getAllBalances
: Retrieve all coin balances for an addresssuix_getCoins
: List coin objects with filtering optionssuix_getCoinMetadata
: Access coin configuration and metadata
Event Subscription APIs
Monitor blockchain activity in real-time:
suix_subscribeEvent
: Stream events matching filter criteriasuix_subscribeTransaction
: Monitor transaction effects as they occursuix_queryEvents
: Query historical events with paginationsui_getEvents
: Retrieve events for specific transactions
Governance & Staking APIs
Interact with Sui's proof-of-stake system:
suix_getValidatorsApy
: Current validator annual percentage yieldssuix_getStakes
: Query delegation informationsuix_getCommitteeInfo
: Access validator committee detailssuix_getLatestSuiSystemState
: Complete system state snapshot
Getting Started
Connection Details
# Mainnet endpoint
https://api-sui-mainnet-full.n.dwellir.com/YOUR_API_KEY
# Testnet endpoint
https://sui-testnet.dwellir.com/YOUR_API_KEY
Quick Start Example
// Initialize connection
const provider = new JsonRpcProvider(
'https://api-sui-mainnet-full.n.dwellir.com/YOUR_API_KEY'
);
// Query account balance
const balance = await provider.getBalance({
owner: '0x...',
coinType: '0x2::sui::SUI'
});
// Execute a transaction
const result = await provider.executeTransactionBlock({
transactionBlock: signedTx,
options: {
showEffects: true,
showEvents: true
}
});
Use Cases
DeFi Applications
Build sophisticated financial protocols leveraging Sui's performance:
- High-frequency trading: Sub-second settlement for optimal execution
- Automated market makers: Efficient liquidity provision with minimal slippage
- Lending protocols: Real-time collateral management and liquidations
- Yield aggregators: Complex multi-protocol strategies
Gaming & NFTs
Create immersive gaming experiences with true digital ownership:
- On-chain gaming: Real-time gameplay with instant state updates
- Dynamic NFTs: Evolving digital assets with programmable attributes
- Gaming economies: Complex in-game economies with tradeable assets
- Metaverse applications: Scalable virtual worlds with millions of objects
Social & Creator Platforms
Develop next-generation social applications:
- Decentralized social: User-owned content and relationships
- Creator monetization: Direct fan engagement without intermediaries
- Content distribution: Efficient media delivery with proof of ownership
- Reputation systems: Portable identity and achievement tracking
Network Specifications
Specification | Value |
---|---|
Consensus | Narwhal-Bullshark (for shared objects) |
Block Time | ~0.5 seconds |
Finality | Sub-second |
Throughput | 120,000+ TPS |
Native Token | SUI |
Smart Contracts | Move language |
Data Model | Object-centric |
State Management | Parallel execution |
Available RPC Methods
Browse our comprehensive documentation for all supported Sui RPC methods:
Transaction Methods
- sui_executeTransactionBlock - Execute signed transactions
Query Methods
- sui_getObject - Retrieve object information
Coin Methods
- suix_getBalance - Query coin balances
More methods will be added soon.
Best Practices
Optimize Performance
- Batch requests: Combine multiple calls for efficiency
- Object caching: Store frequently accessed objects locally
- Event filtering: Use precise filters to reduce data transfer
- Connection pooling: Reuse connections for better throughput
Handle Errors Gracefully
- Implement retries: Automatic retry with exponential backoff
- Monitor rate limits: Track usage to avoid throttling
- Validate inputs: Check object versions and ownership before submission
- Error classification: Distinguish between temporary and permanent failures
Security Considerations
- Secure key management: Never expose private keys in code
- Transaction validation: Verify transaction effects before confirmation
- Input sanitization: Validate all user inputs before processing
- Access control: Implement proper authentication for sensitive operations
Support & Resources
Developer Resources
- API Reference: Complete method documentation with examples
- Integration Guides: Step-by-step tutorials for common use cases
- Code Samples: Production-ready examples in multiple languages
- SDK Support: Official libraries for seamless integration
Get Help
- Email: support@dwellir.com
- Documentation: Comprehensive guides and API references
- Dashboard: dashboard.dwellir.com
Ready to build on Sui? Get your API key and start developing with Dwellir's enterprise-grade infrastructure today.
Need assistance? Contact our support team for expert guidance on Sui development.