App

The GraphQL queries that can be performed on the App ADO.

queryApp

Queries details about an App given its contract address.

export async function queryApp(contractAddress: string) {
  return (
    await query<QueryApp, QueryAppResponse>(QUERY_APP, { contractAddress })
  ).app;
}
NameTypeDescription

contractAddress

string

The contract address to query.

QueryApp

export interface QueryApp extends ContractAddressQuery {}

QueryAppResponse

export interface QueryAppResponse {
  app: {
    addresses: {
      address: string;
      name: string;
    }[];
    components: {
      name: string;
      ado_type: string;
    }[];
    config: {
      name: string;
      owner: string;
    };
  };
}
NameTypeDescription

address

string

The address of the contract in the app.

name

string

The name of the contract in the app.

Last updated