Forkast Developer Docs
Typescript SDK
7 min
forkast sdk integration guide welcome to the forkastsdk quickstart guide this walkthrough shows how to authenticate, explore markets, and place your first trade installation forkast sdk supports node 20 x or later npm install @forkastgg/client\@0 0 1 beta 4 usage initialize the sdk to start interacting with the forkast platform, you must initialize the sdk and get access to the available services import { forkastsdk, network } from "@forkastgg/client"; // initialize the sdk const sdk = new forkastsdk(network mainnet,"your api key"); testnet version is not available to the public users access the services once the sdk is initialized, you can access several high level services these services are used to interact with prediction markets, user accounts, balances, and orders // get service instances const marketservice = sdk getmarketservice(); const accountservice = sdk getaccountservice(); const balancesservice = sdk getbalancesservice(); const orderservice = sdk getorderservice(); complete example find the complete example docid mirkvzdlb1xxc7szklqu here services for more detailed functions, visit services docid 443t170zqrejz1k1cx82f license mit