Function contentTopicsByPubsubTopic

  • Given an array of content topics, groups them together by their Pubsub topic as derived using the algorithm for autosharding. If any of the content topics are not properly formatted, the function will throw an error.

    Parameters

    • contentTopics: string[]
    • clusterId: number = DEFAULT_CLUSTER_ID
    • networkShards: number = 8

    Returns Map<string, string[]>

Generated using TypeDoc