@delvtech/drift-viem
v0.0.1-beta.13
Published
Viem adapter for [@delvtech/drift](https://github.com/delvtech/evm-client/).
Downloads
147
Readme
@delvtech/drift-viem
Viem adapter for @delvtech/drift.
import { Drift } from "@delvtech/drift";
import { viemAdapter } from "@delvtech/drift-viem";
import { createPublicClient, http } from "viem";
const publicClient = createPublicClient({
transport: http(),
// ...other options
});
// optionally, create a wallet client
const walletClient = createWalletClient({
transport: http(),
// ...other options
});
const drift = new Drift(viemAdapter({ publicClient, walletClient }));