This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@naturalselectionlabs/index-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

index-sdk

index-sdk is designed to simplify the development process and enable developers to interact with RSS3 API efficiently

Usage

# npm
npm i index-sdk

# yarn
yarn add index-sdk

# pnpm
pnpm add index-sdk

If you want to customize the endpoint, you can:

import { IndexClient } from 'index-sdk'

const index = new IndexClient({ endpoint: { data: 'https://test-pregod.rss3.dev/v1' } })

And of course you can also use all of fetch options (RequestInit).

Examples

Get all of Vitalik's profiles on Web3

import { IndexClient } from 'index-sdk'

const index = new IndexClient()

const { result: profiles } = await index.profiles.get('vitalik.eth')

Now you know where to find Vitalik!

Get all notes posted by DIYgod on xLog

import { IndexClient } from 'index-sdk'

const index = new IndexClient()

const { result: notes } = await index.notes.get('diygod.eth', {
  platform: ['xLog']
})

Now you can even use xLog as a headless CMS

Readme

Keywords

none

Package Sidebar

Install

npm i @naturalselectionlabs/index-sdk

Weekly Downloads

2

Version

0.3.4

License

none

Unpacked Size

482 kB

Total Files

5

Last publish

Collaborators

  • index.ai
  • yzhe819
  • dmoosocool