rain-trade
Rain — Trade
Buy, sell, and manage orders on Rain prediction markets using @buidlrrr/rain-sdk.
npm install @buidlrrr/rain-sdk # peer dep: viem ^2.0.0
All tx builders return { to, data, value? }. The SDK never sends — the caller signs and sends.
Setup
import { Rain } from '@buidlrrr/rain-sdk';
const rain = new Rain({ environment: 'production' });
Approve First
More from rain1-labs/rain-sdk
rain-create-market
Create prediction markets on the Rain protocol (Arbitrum One) using @buidlrrr/rain-sdk. Use when: building market creation flows, deploying new prediction markets, setting up initial liquidity, configuring market options/probabilities, or any task involving Rain's buildCreateMarketTx method.
11rain-data
Query data from the Rain prediction-markets protocol (Arbitrum One) using @buidlrrr/rain-sdk. Use when: fetching market listings, prices, volume, liquidity, positions, portfolio values, transaction history, price charts (OHLCV), P&L analytics, leaderboards, protocol stats, or subscribing to live WebSocket price/event feeds from Rain.
9