The Complete Flow
1
Asset Listing
Asset owner lists their asset on Tradmatrix with:
- Asset details and images (up to 50 photos)
- Total number of tokens
- Price per token
- Verification documents
2
Token Sales
Participants purchase tokens using USDC:
- Connect Solana wallet
- Buy 1 or multiple tokens
- Each token = 1 entry
- Sales tracked in real-time
3
Sold Out
When all tokens are sold:
- Asset status changes to “Sold Out”
- Funds held in escrow
- Ready for winner selection
4
Winner Selection
Provably fair random selection:
- Uses Entropy’s provably fair algorithm
- Cannot be manipulated
- Transparent on-chain
- Winner immediately notified
5
Settlement
Automatic fund distribution:
- 98.5% → Asset Owner
- 1.5% → Platform Fee
- Winner receives asset ownership
Detailed Process
1. Asset Listing
Asset owners create a listing by calling thecreate_asset instruction:
- Asset PDA: Stores all asset information
- Asset Vault: Holds USDC from token sales
- Unique Asset ID: Auto-incrementing identifier
2. Token Purchase
Users buy tokens by calling thebuy_token instruction:
- Transfers USDC to asset vault
- Creates token PDA with unique number (0, 1, 2, …)
- Updates asset’s
tokensSoldcounter - Emits
TokenPurchasedevent
3. Winner Selection
When sold out, admin callspick_winner instruction:
The winner selection process is completely deterministic and transparent:
- Entropy protocol generates a cryptographically secure random value
- Calculates:
winningToken = randomValue % totalTokens - Looks up token owner from on-chain PDA
- Distributes funds automatically
- Emits
WinnerSelectedevent
Probability Mechanics
Fair Odds
Your winning probability is straightforward:Multiple Token Strategy
Buying more tokens increases your probability:Probability Calculator
Probability Calculator
Security Guarantees
How Entropy’s Algorithm Works
- Commitment: Entropy provider commits to a secret seed before randomness is available
- Sampling: Solana validators produce unpredictable randomness through slot hashing
- Revelation: Pre-committed seed is revealed and verified on-chain
- Generation: Final random value is derived from both sources, making it impossible for any party to control
- No single party can predict the outcome
- The platform cannot manipulate the result
- All participants have equal odds
- Process is completely transparent and verifiable on-chain
What Happens Next?
After winning:- Winner notified via email/SMS/push notification
- Asset ownership transfer process initiated
- Legal documentation provided
- Ownership transfer completed
Next: Benefits
Learn about the benefits for asset owners and participants

