@takeoffdev/api
v0.1.0
Published
REST and WebSocket clients for the Takeoff launchpad backend APIs.
Downloads
62
Maintainers
Readme
@takeoffdev/api
REST and WebSocket clients for the Takeoff backend APIs.
This package includes:
TakeoffApiClientfor HTTP endpointsTakeoffDashboardWsClientfor dashboard subscriptionsTakeoffEventsWsClientfor event streams
Install
npm install @takeoffdev/apiUsage
import { TakeoffApiClient } from "@takeoffdev/api";
const client = new TakeoffApiClient({
baseUrl: "https://backends.takeoff.lol",
});
const summary = await client.getMarketSummary({
baseMint: "<BASE_MINT>",
});WebSockets
Use TakeoffDashboardWsClient and TakeoffEventsWsClient when you want live subscriptions from browser or server environments. If your runtime does not expose globalThis.WebSocket, pass a webSocketFactory.
