Sui Module
The Sui module parses transactions for the Sui blockchain, which uses the Move programming language and an object-centric data model.
Architecture Overview
Transaction Model
- Encoding: BCS (Binary Canonical Serialization)
- Object-based: Resources are objects with unique IDs
- Move Language: Type-safe smart contract language
- Gas Model: Storage and computation fees
Key Components
The Sui parser handles:
- Object transfers
- Move function calls
- Coin operations (split, merge)
- Programmable transactions
- Package publishing
Transaction Types
Programmable Transactions
Sui's programmable transactions allow multiple operations in a single transaction:
- Multiple Move calls
- Object transfers
- Coin operations
- All executed atomically
Object Model
- Owned Objects: Belong to a specific address
- Shared Objects: Accessible by multiple transactions
- Immutable Objects: Read-only after creation
Visualization Strategy
Command Sequence
Show programmable transaction commands as a sequence of operations.
Object Information
Display object IDs and ownership when relevant to the transaction.
Gas Objects
Show gas payment details including storage rebates.
Implementation Details
Source code available at:
Common Operations
SUI Transfer
Transfer of native SUI tokens between addresses.
Object Transfer
Moving owned objects from one address to another.
Move Function Call
Invoking functions in deployed Move modules.
Coin Split/Merge
Operations to divide or combine coin objects.