UNPKG

@newcoin-core/agent

Version:

A super simple way to set up newOS agents

12 lines (9 loc) 301 B
import { NewgraphApi } from "./newgraph"; const API_URL = "https://api.newgra.ph/v1"; export const NewgraphClient = (token: string) => { const a = NewgraphApi(); a.initialize(API_URL); a.updateToken(token); return a; } export type NewgraphClient = ReturnType<typeof NewgraphClient>;