@thirdweb-dev/insight
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Insight TypeScript SDK

This package is a thin openAPI wrapper for insight, our in-house indexer.

Configuration

import { configure } from "@thirdweb-dev/insight";

// call this once at the startup of your application
configure({
  clientId: "<YOUR_CLIENT_ID>",
});

Example Usage

import { getV1Events } from "@thirdweb-dev/insight";

const events = await getV1Events({
  query: {
    chain: [1, 137],
    filter_address: "0x1234567890123456789012345678901234567890",
  },
});

This package was autogenerated from the Insight openAPI spec using @hey-api/openapi-ts

Readme

Keywords

none

Package Sidebar

Install

npm i @thirdweb-dev/insight

Weekly Downloads

7,577

Version

1.0.0

License

Apache-2.0

Unpacked Size

513 kB

Total Files

47

Last publish

Collaborators

  • yash90
  • furqantw
  • jnsdls
  • joaquim-verges
  • jakeloo
  • thirdweb-bot