Skip to main content

Module api

Module api 

Source
Expand description

Predict.fun REST API client.

Thin wrapper around the OpenAPI surface with typed methods for all 30 endpoints.

Structs§

EndpointSpec
OpenAPI endpoints currently exposed by https://api.predict.fun/docs. Keep this in sync when the upstream API adds/removes endpoints.
PredictApiClient
Thin REST wrapper around Predict’s OpenAPI surface.
RawApiResponse

Enums§

MethodName

Constants§

PREDICT_ENDPOINTS
PREDICT_MAINNET_BASE
PREDICT_TESTNET_BASE