Skip to content

Getting Started with Depredict SDK

The Depredict SDK is a TypeScript library for interacting with the Depredict Protocol on Solana.

Installation

npm install @endcorp/depredict

Usage Example

import { Connection, PublicKey } from '@solana/web3.js';
import DepredictClient from '@endcorp/depredict';
 
// Initialize the client
const connection = new Connection('https://api.devnet.solana.com');
const adminKey = new PublicKey('...'); // Your admin public key
const feeVault = new PublicKey('...'); // Your fee vault public key
 
const client = new DepredictClient(connection, adminKey, feeVault);
 
// Example: Get all markets
const markets = await client.trade.getAllMarkets();

Features

  • Create and manage prediction markets
  • Place and manage positions
  • View market data and liquidity
  • Handle user trades and NFT positions
  • Protocol configuration management
Depredict is an END Corp. project. | Copyright © 2025 END Corp.