Commit 905756c 1 parent 2d2a47c commit 905756c Copy full SHA for 905756c
File tree 1 file changed +17
-13
lines changed
1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 17
17
## Features
18
18
19
19
Currently available:
20
- * Read onchain data using the [ GoldRush API] ( https://goldrush.dev/ )
20
+
21
+ - Read onchain data using the [ GoldRush API] ( https://goldrush.dev/ )
21
22
22
23
Roadmap:
23
- * Access offchain and private data
24
- * Train and fine-tune Large/Small Language Models
25
- * Identity services to securely store your agent's private keys
26
- * Communication services to post to social media
27
- * Memory Bank to provide a trustless, verifiable persistent store for critical states, outputs and decisions
24
+
25
+ - Access offchain and private data
26
+ - Train and fine-tune Large/Small Language Models
27
+ - Identity services to securely store your agent's private keys
28
+ - Communication services to post to social media
29
+ - Memory Bank to provide a trustless, verifiable persistent store for critical states, outputs and decisions
28
30
29
31
## Using the SDK
30
32
31
33
### 1. Setup and installation
32
34
33
35
> yarn install
34
36
35
- or
37
+ or
36
38
37
39
> npm install
38
40
39
41
### 2. Initialization
40
42
41
43
``` js
42
- import { Agent , BaseChain , GoldRushAPI } from " @covalenthq/ai-agent-sdk" ;
44
+ import { Agent , BaseChain , OnchainProvider } from " @covalenthq/ai-agent-sdk" ;
43
45
44
46
new Agent ({
45
47
onchain: {
46
48
key: " XXX" ,
47
- provider: GoldRushAPI
48
- }
49
- })
50
-
49
+ provider: OnchainProvider .GoldRushAPI ,
50
+ },
51
+ });
51
52
```
52
53
53
54
### 3. Retrieve Token Balances for Wallet on Base Chain
54
55
55
56
``` js
56
- const balances = agent .onchain .getTokenBalancesForWalletAddress (BaseChain, " demo.eth" );
57
+ const balances = agent .onchain .getTokenBalancesForWalletAddress (
58
+ BaseChain,
59
+ " demo.eth" ,
60
+ );
57
61
```
58
62
59
63
## 🤝 Contributing
You can’t perform that action at this time.
0 commit comments