@delvtech/drift-viem
v0.0.1-beta.21
Published
Viem adapter for Drift
Downloads
1,041
Readme
@delvtech/drift-viem
import { Drift } from "@delvtech/drift";
import { viemAdapter } from "@delvtech/drift-viem";
import { createPublicClient, http } from "viem";
const publicClient = createPublicClient(/* ... */);
const walletClient = createWalletClient(/* ... */); // optional
const drift = new Drift({
adapter: viemAdapter({ publicClient, walletClient }),
});