YOSOKU SDK

Interact with the YOSOKU prediction market protocol on Solana via a typed TypeScript client.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/YosokuSolana/yosoku-sdk --skill yosoku-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: YOSOKU SDK
Source: https://github.com/YosokuSolana/yosoku-sdk/tree/main
Command: npx skills add https://github.com/YosokuSolana/yosoku-sdk --skill yosoku-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the complexity of interacting with the YOSOKU prediction market protocol by providing a single typed TypeScript client to create markets, place orders, read on-chain state, and drive resolution workflows.

Core Features & Use Cases

  • Market creation (regular + multi-leg): Create binary YES/NO markets or multi-outcome markets, including leg management.
  • Trading & positions: Place limit/market orders, claim matched fills into positions, merge shares, cancel orders, and redeem after resolution.
  • Resolution & events: Propose/finalize UMA-style resolutions, support wallet-vote resolution, read account state, and subscribe to real-time on-chain events.

Quick Start

Use the YOSOKU SDK to create a regular YES/NO market on Solana Devnet and then place a limit bid on the YES side with tick-based pricing.

Frequently Asked Questions about YOSOKU SDK

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create prediction markets on Solana using a TypeScript SDK?

To create prediction markets on Solana, you use a typed TypeScript client to initialize binary YES/NO markets or multi-outcome markets, including leg management. This simplifies programmatic execution by handling deterministic PDA derivation and typed deserialization of on-chain account state automatically.

What is tick-based trading and how does it work for Solana prediction market protocols?

Tick-based trading in Solana prediction market protocols allows placing limit and market orders using tick-to-price conversion. A typed client handles USDC 6-decimal accounting for bids, matches fills into positions, and supports share merging and order cancellation.

How do I handle UMA-style resolution workflows for prediction markets on Solana?

UMA-style resolution workflows on Solana involve proposing and finalizing resolutions, optionally supporting wallet-vote resolution. A dedicated client drives these flows, allowing users to claim matched fills, redeem shares post-resolution, and parse execution errors programmatically.

Do I need an AnchorProvider to interact with Solana prediction market protocols?

You need an AnchorProvider for executing transactions on Solana prediction market protocols, or a read-only Connection for querying account state. The client relies on these providers to manage market creation, trading, resolution flows, and WebSocket event subscriptions.

Can I subscribe to real-time on-chain events for Solana prediction markets?

Yes, you can subscribe to real-time on-chain events for Solana prediction markets using WebSocket event subscriptions. The typed client supports listening to market activities, enabling applications to react instantly to state changes and resolution updates.

What are the limitations of building prediction market applications on Solana?

Limitations of building Solana prediction market applications include managing USDC 6-decimal accounting accurately and handling tick-to-price conversion without errors. The protocol requires deterministic PDA derivation and typed deserialization, meaning raw transactions are complex without a typed client wrapper.