Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / MaciSubgraph

Class: MaciSubgraph

Defined in: packages/sdk/ts/subgraph/maciSubgraph.ts:9

A class that can be used to interact with MACI's subgraph

Dev

refer to apps/subgraph for subgraph deployment and configuration

Constructors

Constructor

new MaciSubgraph(url): MaciSubgraph

Defined in: packages/sdk/ts/subgraph/maciSubgraph.ts:31

Create a new instance of the MaciSubgraph class

Parameters

url

string

The URL of the subgraph

Returns

MaciSubgraph

Methods

getKeys()

getKeys(): Promise<PublicKey[]>

Defined in: packages/sdk/ts/subgraph/maciSubgraph.ts:40

Get the public keys of all MACIs signed up

Returns

Promise<PublicKey[]>

Array of public keys