Forkast Developer Docs
...
Order
Get Orders
1 min
fetches orders for a wallet filtered by outcome and status, with pagination import { forkastsdk, network, getordersresponse } from "@forkastgg/client"; const sdk = new forkastsdk(network testnet, "your api key"); const accountservice = sdk getaccountservice(); const orderservice = sdk getorderservice(); const { accesstoken } = await accountservice loginwithprivatekey( "your private key" ); const orders getordersresponse = await orderservice getallorders( "0xyourwallet", 1, // outcomeid accesstoken, 1, // status 100, // limit 1 // page ); parameters field type required description outcomeid number yes outcome id to filter address string yes wallet address status number yes order status filter default 1 page number yes page number default 1 limit number yes max per page default 1000 accesstoken string yes access token received from login response