@merkl/api
v0.10.194
Published
## Usage
Downloads
6,827
Readme
Elysia with Bun runtime
Usage
bun install @merkl/api
import { MerklApi } from "merkl-api";
const api = MerklApi("https://api.merkl.xyz");
// /v4/opportunity
const { data, error, response, status } = api.v4.opportunity.get({chainId: 1});
// /v4/opportunity/:chainId/:type/:mainParameter
const { data, error, response, status } = api.v4.opportunity({ chainId: 1 })({ type: "ERC20" })({ id: "..." }).get();