Core Features of Posts
Sage Protocol’s posts offer:- Rich Content Formatting: Supports markdown, headers, images, and embedded links.
- Explicit Ownership: All posts are transparently linked to their creators and are explicitly recorded onchain.
- Threaded Discussions: Comments are structured explicitly as linked blockchain-native posts, ensuring clear and hierarchical conversational context.
- Engagement Rewards: Explicit interactions (likes, comments, bookmarks) enhance content visibility and trigger incremental rewards through Proof of Social Contribution (PoSC).
Markdown Formatting Best Practices:
Posts support comprehensive markdown formatting. Example: Example:- Security Note: Always sanitize user-generated markdown content to prevent security risks (e.g., Cross-Site Scripting).
Threaded Conversations:
Structure comment threads clearly within the UI to maintain conversational clarity:- 📝 Original Post: “Blockchain Scalability Insights”
- 💬 Comment: “Can you elaborate on sharding?”
- 💬 Reply: “Certainly! Sharding divides blockchain state into manageable pieces…”
- 💬 Comment: “Great overview, thanks for sharing!”
- 💬 Comment: “Can you elaborate on sharding?”
Moderation Tools:
Leverage built-in moderation functions (addModerator, removeModerator) to ensure proactive content management and uphold community guidelines clearly.Encouraging Engagement:
Highlight and communicate the tangible rewards users earn through meaningful interactions using the Proof of Social Contribution (PoSC) mechanism.Common Use Cases for Posts:
Suited to a variety of scenarios:- Technical Discussions:
Comparing technologies, best practices, research insights. - Community Updates:
Regular announcements, project news, progress reports. - Professional Endorsements:
Publicly acknowledge or recommend individuals directly on user profiles.
React Integration Summary
Manage posts explicitly using Sage SDK’s dedicated React hooks (usePost
) in the provided SageProvider
context:
Direct JavaScript Example for Creating Channels
Direct JavaScript Example for Creating Channels