Class Indexer

This class is used to fetch data like characters, links from the indexer.

import { createIndexer } from 'crossbell'

const indexer = createIndexer()
const res = await indexer.character.getMany('0x...')
console.log(res.list)

https://indexer.crossbell.io/docs The underlying APIs.

Hierarchy

  • BaseIndexer
    • Indexer

Constructors

Properties

achievement: AchievementIndexer = ...
character: CharacterIndexer = ...
endpoint: string = "https://indexer.crossbell.io/v1"

The indexer endpoint

feed: FeedIndexer = ...
fetchOptions: FetchOptions = {}

The options to send to the fetch function.

link: LinkIndexer = ...
linklist: LinklistIndexer = ...
linkModule: LinkModuleIndexer = ...
metadata: MetadataIndexer = ...
mintedNote: MintedNoteIndexer = ...
mintModule: MintModuleIndexer = ...
newbie: NewbieIndexer = ...
note: NoteIndexer = ...
notification: NotificationIndexer = ...
operator: OperatorIndexer = ...
search: SearchIndexer = ...
siwe: SiweIndexer = ...
stat: StatIndexer = ...
tip: TipIndexer = ...

Methods

  • Type Parameters

    • T

    Parameters

    • url: string
    • __namedParameters: InternalFetchOptions = {}

    Returns Promise<T>

MMNEPVFCICPMFPCPTTAAATR