Quickstart
Prerequisites
Install
npm install @epoch-protocol/epoch-intents-sdk @epoch-protocol/epoch-commons-sdk viemInitialize the SDK
import { EpochIntentSDK } from "@epoch-protocol/epoch-intents-sdk";
import { TaskType } from "@epoch-protocol/epoch-commons-sdk";
import { useWalletClient, useAccount } from "wagmi";
const EPOCH_API_BASE = "https://testnet-dev.epochprotocol.xyz"; // testnet
// Inside your component:
const { data: walletClient } = useWalletClient();
const { address } = useAccount();
const sdk = new EpochIntentSDK({
apiBaseUrl: EPOCH_API_BASE,
walletClient: walletClient!,
});Minimal flow: quote and solve
Checklist
Testnet
Next steps
Last updated