3.0.6 • Published 11 months ago
@delvtech/hyperdrive-viem v3.0.6
@delvtech/hyperdrive-viem
A Viem implementation of the Hyperdrive Typescript SDK
Installation
npm install viem @delvtech/hyperdrive-viem
Quick Start
import { createReadHyperdrive } from "@delvtech/hyperdrive-viem";
import { publicClient } from "./client";
const hyperdrive = createReadHyperdrive({
address: "0x...", // hyperdrive contract address
publicClient,
});
const myLongs = hyperdrive.getOpenLongs({
account: "0x..."
});