UNPKG
@newcoin-core/agent
Version:
latest (0.9.12)
0.9.12
0.9.11
0.9.10
0.9.9
0.9.7
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.11
0.8.10
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
A super simple way to set up newOS agents
@newcoin-core/agent
/
src
/
clients
/
client.ts
12 lines
(9 loc)
•
301 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
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
>;