Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / indexer

indexer

Ethereum Comments Protocol SDK Indexer Functionality for indexing and querying comments data

Classes

ClassDescription
ResponseErrorAn error thrown when a response from the indexer is not successful.

Type Aliases

Type AliasDescription
FetchAuthorDataOptionsThe options for fetchAuthorData()
FetchAutocompleteOptionsThe options for fetchAutocomplete()
FetchChannelOptionsThe options for fetchChannel()
FetchChannelsOptionsThe options for fetchChannels()
FetchCommentOptions-
FetchCommentRepliesOptionsThe options for fetchCommentReplies()
FetchCommentsOptionsThe options for fetchComments()
FetchGroupedNotificationsOptionsThe options for fetchGroupedNotifications()
FetchNotificationsOptionsThe options for fetchNotifications()
IndexerAPIAuthorDataSchemaType-
IndexerAPIAuthorEnsDataSchemaType-
IndexerAPIAutocompleteENSSchemaType-
IndexerAPIAutocompleteERC20SchemaType-
IndexerAPIAutocompleteFarcasterSchemaType-
IndexerAPIAutocompleteSchemaType-
IndexerAPIChannelOutputSchemaType-
IndexerAPIChannelSchemaType-
IndexerAPICommentListModeSchemaType-
IndexerAPICommentModerationStatusSchemaType-
IndexerAPICommentOutputSchemaType-
IndexerAPICommentReactionSchemaType-
IndexerAPICommentReferenceENSSchemaType-
IndexerAPICommentReferenceERC20SchemaType-
IndexerAPICommentReferenceFarcasterSchemaType-
IndexerAPICommentReferenceQuotedCommentSchemaTypeHandles caip373 quoted comment
IndexerAPICommentReferenceSchemaType-
IndexerAPICommentReferencesSchemaInputType-
IndexerAPICommentReferencesSchemaType-
IndexerAPICommentReferenceURLFileSchemaType-
IndexerAPICommentReferenceURLImageSchemaType-
IndexerAPICommentReferenceURLVideoSchemaType-
IndexerAPICommentReferenceURLWebPageSchemaType-
IndexerAPICommentSchemaType-
IndexerAPICommentWithRepliesOutputSchemaType-
IndexerAPICommentWithRepliesSchemaType-
IndexerAPICommentZeroExSwapSchemaType-
IndexerAPICursorPaginationSchemaType-
IndexerAPIExtraSchemaType-
IndexerAPIFarcasterDataSchemaType-
IndexerAPIGetAutocompleteOutputSchemaType-
IndexerAPIListChannelsOutputSchemaType-
IndexerAPIListChannelsSchemaType-
IndexerAPIListCommentRepliesOutputSchemaType-
IndexerAPIListCommentRepliesSchemaType-
IndexerAPIListCommentsOutputSchemaType-
IndexerAPIListCommentsSchemaType-
IndexerAPIListGroupedNotificationsSchemaTypeThe list grouped notifications schema returned by fetchGroupedNotifications()
IndexerAPIListNotificationsSchemaTypeThe list notifications schema returned by fetchNotifications()
IndexerAPIMarkNotificationsAsSeenSchemaType-
IndexerAPIMetadataEntrySchemaType-
IndexerAPIMetadataSchemaType-
IndexerAPIModerationChangeModerationStatusOnCommentOutputSchemaType-
IndexerAPIModerationChangeModerationStatusOnCommentSchemaType-
IndexerAPIModerationClassificationLabelSchemaType-
IndexerAPIModerationGetPendingCommentsOutputSchemaType-
IndexerAPIModerationGetPendingCommentsSchemaType-
IndexerAPINotificationMentionSchemaType-
IndexerAPINotificationQuoteSchemaType-
IndexerAPINotificationReactionSchemaType-
IndexerAPINotificationReplySchemaType-
IndexerAPINotificationSchemaTypeThe notification schema
IndexerAPINotificationTypeSchemaType-
IndexerAPIPaginationSchemaType-
IndexerAPIReportOutputSchemaType-
IndexerAPIReportSchemaType-
IndexerAPIReportsListPendingOutputSchemaType-
IndexerAPIReportsListPendingSchemaType-
IndexerAPISortSchemaType-
IsMutedOptionsThe options for isMuted()
MarkNotificationsAsSeenOptions-
ReportCommentOptionsThe options for reportComment()

Variables

VariableDescription
IndexerAPIAuthorDataSchema-
IndexerAPIAuthorEnsDataSchema-
IndexerAPIAutocompleteENSSchema-
IndexerAPIAutocompleteERC20Schema-
IndexerAPIAutocompleteFarcasterSchema-
IndexerAPIAutocompleteSchema-
IndexerAPIChannelOutputSchema-
IndexerAPIChannelSchema-
IndexerAPICommentListModeSchema-
IndexerAPICommentModerationStatusSchema-
IndexerAPICommentOutputSchema-
IndexerAPICommentReactionOutputSchema-
IndexerAPICommentReactionSchema-
IndexerAPICommentReferenceENSSchema-
IndexerAPICommentReferenceERC20Schema-
IndexerAPICommentReferenceFarcasterSchema-
IndexerAPICommentReferencePositionSchema-
IndexerAPICommentReferenceQuotedCommentSchemaHandles caip373 quoted comment
IndexerAPICommentReferenceSchema-
IndexerAPICommentReferencesSchema-
IndexerAPICommentReferenceURLFileSchema-
IndexerAPICommentReferenceURLImageSchema-
IndexerAPICommentReferenceURLVideoSchema-
IndexerAPICommentReferenceURLWebPageSchema-
IndexerAPICommentSchema-
IndexerAPICommentWithRepliesOutputSchema-
IndexerAPICommentWithRepliesSchema-
IndexerAPICommentZeroExSwapSchema-
IndexerAPICursorPaginationSchema-
IndexerAPICursorRepliesPaginationSchema-
IndexerAPIExtraSchema-
IndexerAPIFarcasterDataSchema-
IndexerAPIGetAutocompleteOutputSchema-
IndexerAPIListChannelsOutputSchema-
IndexerAPIListChannelsSchema-
IndexerAPIListCommentRepliesOutputSchema-
IndexerAPIListCommentRepliesSchema-
IndexerAPIListCommentsOutputSchema-
IndexerAPIListCommentsSchema-
IndexerAPIListGroupedNotificationsSchemaThe list grouped notifications schema returned by fetchGroupedNotifications()
IndexerAPIListNotificationsSchemaThe list notifications schema returned by fetchNotifications()
IndexerAPIMarkNotificationsAsSeenSchema-
IndexerAPIMetadataEntrySchema-
IndexerAPIMetadataSchema-
IndexerAPIModerationChangeModerationStatusOnCommentOutputSchema-
IndexerAPIModerationChangeModerationStatusOnCommentSchema-
IndexerAPIModerationClassificationLabelSchema-
IndexerAPIModerationGetPendingCommentsOutputSchema-
IndexerAPIModerationGetPendingCommentsSchema-
IndexerAPINotificationBaseSchema-
IndexerAPINotificationMentionSchema-
IndexerAPINotificationQuoteSchema-
IndexerAPINotificationReactionSchema-
IndexerAPINotificationReplySchema-
IndexerAPINotificationSchemaThe notification schema
IndexerAPINotificationTypeSchema-
IndexerAPIPaginationSchema-
IndexerAPIReportOutputSchema-
IndexerAPIReportSchema-
IndexerAPIReportsListPendingOutputSchema-
IndexerAPIReportsListPendingSchema-
IndexerAPIReportStatusSchema-
IndexerAPISortSchema-
IndexerAPIZeroExSwapPossibleEmptyAddressSchema-
IndexerAPIZeroExSwapPossiblyEmptyTokenAmountSchema-
IndexerAPIZeroExTokenAmountSchema-

Functions

FunctionDescription
convertIndexerMetadataToRecordConverts IndexerAPI MetadataEntry array to Record format for easier manipulation
convertRecordToIndexerMetadataConverts Record format metadata to IndexerAPI MetadataEntry array format
fetchAuthorDataFetch author data from the Indexer API
fetchAutocompleteFetch autocomplete suggestions from the Indexer API
fetchChannelFetch a single channel by ID from the Indexer API
fetchChannelsFetch channels from the Indexer API
fetchCommentFetch one single comment from the Indexer API
fetchCommentRepliesFetch replies for a comment from the Indexer API
fetchCommentsFetch comments from the Indexer API
fetchGroupedNotificationsFetch grouped notifications from the Indexer API
fetchNotificationsFetch notifications from the Indexer API
getChannelCursorGet the cursor for a channel
getCommentCursorGet the cursor for a comment
getReportsCursorGet the cursor for a report
indexerApiRetryConditionDetermine if a fetch error from the indexer API should be retried
isMutedChecks if an address is marked as muted on the indexer of your choice.
isRetryableHttpResponseCheck if a response is retryable
markNotificationsAsSeenMark notifications as seen
reportCommentReport a comment to the Indexer API

References

convertContractToRecordFormat

Re-exports convertContractToRecordFormat


convertRecordToContractFormat

Re-exports convertRecordToContractFormat


createKeyTypeMap

Re-exports createKeyTypeMap


MetadataRecord

Re-exports MetadataRecord


MetadataType

Re-exports MetadataType


parseMetadataFromContract

Re-exports parseMetadataFromContract


prepareMetadataForContract

Re-exports prepareMetadataForContract