@delvtech/drift-viem
TypeScript icon, indicating that this package has built-in type declarations

0.8.4 • Public • Published

@delvtech/drift-viem

Viem adapter for Drift.

import { createDrift } from "@delvtech/drift";
import { viemAdapter } from "@delvtech/drift-viem";
import { createPublicClient, http } from "viem";

const publicClient = createPublicClient(/* ... */);
const walletClient = createWalletClient(/* ... */); // optional
const drift = createDrift({
  adapter: viemAdapter({ publicClient, walletClient }),
});

Readme

Keywords

none

Package Sidebar

Install

npm i @delvtech/drift-viem

Weekly Downloads

2,291

Version

0.8.4

License

Apache-2.0

Unpacked Size

73 kB

Total Files

9

Last publish

Collaborators

  • elf-devops