influence-typed-sdk
v2.6.8
Published
A typesafe wrapper around the official Influence API. I reverse engineered the API so you don't have to! Also ships with typescript definitions for the official sdk
Downloads
226
Readme
influence-typed-sdk
A typesafe wrapper around the official Influence API. I reverse engineered the API so you don't have to! Also ships with typescript definitions for the official sdk
Gettting started
Make sure to have the following peer dependencies installed:
- @influenceth/sdk
- zod
- typescript
Then install the package using your package manager of choice.
npm i -S influence-typed-sdk
bun i influence-typed-sdk
yarn add influence-typed-sdk
Then you are ready to go:
import {
makeInfluenceApi,
preReleaseInfluenceApiUrl,
} from 'influence-typed-sdk/api'
import { makeInfluenceImageUrls } from 'influence-typed-sdk/images'
const api = makeInfluenceApi({
baseUrl: preReleaseInfluenceApiUrl,
accessToken: 'your access token',
})
const imageUrls = makeInfluenceImageUrls()
api.utils.warehouses('0x1234...')
imageUrls.crewmate(1)
Warning
This package is still in development. There might be breaking changes intentionally or unintentionally. Use at your own risk. I recommend pinning the version in your package.json and upgrade manually.