You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+26-3
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,22 @@ The EOA you use must have enough funds to pay for the Mech requests, or alternat
98
98
Mechs can receive requests via the [Mech Marketplace](https://github.com/valory-xyz/ai-registry-mech/) or directly. We call the last ones _Legacy Mechs_.
99
99
Mechs are deployed on several networks. Find the list of supported networks and corresponding mech addresses [here](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs). Additionally, on Gnosis you can find more available Mechs [here](https://mech.olas.network/) (click on the tab "Legacy Mech"in order to see Legacy Mech and "Mech Marketplace"for the ones which receive requests via the Mech Marketplace).
100
100
101
+
102
+
### API Keys
103
+
104
+
In order to fetch on-chain data for Gnosis and Base, mech client requires an API key from a blockchain data provider. You can find them here for [GnosisScan](https://gnosisscan.io/) and [BaseScan](https://basescan.org/). Follow these steps to generate your API key if you are planning to use mech client for gnosis and base:
105
+
106
+
1. Sign up or log in
107
+
2. Go to API Dashboard on the left menu
108
+
3. Add a new API key
109
+
4. Once generated copy your API key
110
+
111
+
Once you have your API key, you'll need to configure it in your environment. Use the following command to set it for your environment.
112
+
113
+
```bash
114
+
export MECHX_API_KEY=<your api key>
115
+
```
116
+
101
117
### Generate Mech requests
102
118
103
119
#### Legacy Mechs
@@ -164,12 +180,19 @@ Data from agent: {'requestId': 1004074058566339663950817114309409628095686850319
164
180
With the Mech Marketplace, the basic usage of the Mech Client is as follows.
The Mech agent which corresponds to the `priority_mech_address`in`<chain_config>` will process `<prompt>` with the default options. Additionally to other options which are the same as for legacy Mechs, this usage has the following option:
192
+
Additionally to other options which are the same as for legacy Mechs, this usage has the following option:
171
193
172
-
`--use-offchain <bool>`: use the off-chain method to send requests to a Mech via the Mech Marketplace. Set to False in order to use the on-chain method.
194
+
`--use-prepaid <bool>`: use the prepaid method to send requests to a Mech via the Mech Marketplace. Defaults to False.
195
+
`--use-offchain <bool>`: use the off-chain method to send requests to a Mech via the Mech Marketplace. Defaults to False.
0 commit comments