Basket Query All queries are read-only and free — no needed. Setup MAINNET ONLY. Run before anything else. NEVER switch to testnet — there are no contracts there. Get Your Hex Address Sails args require hex format — SS58 addresses won't work: BasketMarket Queries Get basket count Returns — total baskets created. Basket IDs are 0-indexed. Get a basket Response is nested under . Parse with jq: Basket fields: , , , , (array of BasketItem), , (Active/SettlementPending/Settled), (Vara/Bet). Get user positions Returns . Each position has: , , , , . To get the agent's own address: Get settlement Ret…