PositionsSDK is the main entry point. It requires an EIP-1193
compatible provider (like window.ethereum from Metamask, or a provider from Wagmi/RainbowKit).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Initialize PositionsSDK with an EIP-1193 provider
PositionsSDK is the main entry point. It requires an EIP-1193
compatible provider (like window.ethereum from Metamask, or a provider from Wagmi/RainbowKit).
import {PositionsSDK} from "@positions/sdk";
import {type EIP1193Provider} from "viem";
// Example with window.ethereum
const sdk = new PositionsSDK(window.ethereum as EIP1193Provider);
// The SDK automatically handles account changes from the provider.