@delvtech/drift-ethers
v0.0.0-beta.11
Published
Ethers.js adapter for Drift
Downloads
494
Readme
@delvtech/drift-ethers
import { Drift } from "@delvtech/drift";
import { ethersAdapter } from "@delvtech/drift-ethers";
import { JsonRpcProvider, Wallet } from "ethers";
const provider = new JsonRpcProvider("https://localhost:8545");
const signer = new Wallet(/* ... */); // optional
const drift = new Drift({
adapter: ethersAdapter({ provider, signer }),
});