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

0.0.0-beta.3 • Public • Published

@delvtech/drift-ethers

Ethers adapter for Drift.

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 }),
});

Readme

Keywords

none

Package Sidebar

Install

npm i @delvtech/drift-ethers

Weekly Downloads

175

Version

0.0.0-beta.3

License

Apache-2.0

Unpacked Size

69.2 kB

Total Files

9

Last publish

Collaborators

  • elf-devops