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
-`--externalUrl` External url of the node (used to identified where the buffer data are stored before being broadcasted on ethereum)
257
-
- Environment variable name: `$EXTERNAL_URL`
258
-
-`--graphNodeUrl` External url of the Graph node, if any. If specified, this will replace the traditional data access with the Graph implementation. Default is undefined. See [TheGraph mode](#thegraph-mode).
|`--port`|`PORT`| Port for the server to listen for API requests | No |`3000`|
227
+
|`--networkId`|`ETHEREUM_NETWORK_ID`| Id of the Ethereum network used | No |`0`|
228
+
|`--providerUrl`|`WEB3_PROVIDER_URL`| URL of the web3 provider for Ethereum | No |`http://localhost:8545`|
229
+
|`--ipfsUrl`|`IPFS_URL`| URL of the IPFS gateway | No |`http://localhost:5001`|
230
+
|`--ipfsTimeout`|`IPFS_TIMEOUT`| Timeout threshold to connect to the IPFS gateway | No |`10000`|
231
+
|`--blockConfirmations`|`BLOCK_CONFIRMATIONS`| The number of block confirmations to consider a transaction successful | No |`2`|
232
+
|`--storageConcurrency`|`STORAGE_MAX_CONCURRENCY`| Maximum number of concurrent calls to Ethereum or IPFS | No |`200`|
233
+
|`--logLevel`|`LOG_LEVEL`| The maximum level of messages we will log (ERROR, WARN, INFO or DEBUG) | No |`INFO`|
234
+
|`--logMode`|`LOG_MODE`| The log format to use (human or machine) | No |`human`|
235
+
|`--persistTransactionTimeout`|`PERSIST_TRANSACTION_TIMEOUT`| Defines the delay in seconds to wait before sending a timeout when creating or updating a request | No |`600`|
236
+
|`--externalUrl`|`EXTERNAL_URL`| External url of the node (used to identify where the buffer data are stored) | No | - |
237
+
|`--graphNodeUrl`|`GRAPH_NODE_URL`| External url of the Graph node. See [TheGraph mode](#thegraph-mode)| No | - |
238
+
|`--thirdwebEngineUrl`|`THIRDWEB_ENGINE_URL`| URL of your Thirdweb Engine instance |**Yes**| - |
239
+
|`--thirdwebAccessToken`|`THIRDWEB_ACCESS_TOKEN`| Access token for Thirdweb Engine |**Yes**| - |
240
+
|`--thirdwebBackendWalletAddress`|`THIRDWEB_BACKEND_WALLET_ADDRESS`| Address of the wallet configured in Thirdweb Engine |**Yes**| - |
241
+
|`--thirdwebWebhookSecret`|`THIRDWEB_WEBHOOK_SECRET`| Secret for verifying webhook signatures | No | - |
242
+
| - |`MNEMONIC`| The mnemonic for generating the wallet private key |**Yes** (except on private networks) |`candy maple...` (only for testing) |
260
243
261
244
#### Mnemonic
262
245
@@ -336,6 +319,25 @@ yarn start
336
319
Open a browser and navigate towards: http://localhost:3000/status
337
320
You can see the details of your local Request & IPFS nodes.
338
321
322
+
## Thirdweb Engine Integration
323
+
324
+
The Request Node uses Thirdweb Engine for transaction submission, which offers several advantages:
325
+
326
+
- No need to manage private keys in the Request Node
327
+
- Better transaction management and monitoring
328
+
- Automated gas price optimization and retry mechanisms
329
+
- Webhook notifications for transaction status
330
+
331
+
### Setting Up Thirdweb Engine
332
+
333
+
1. Deploy Thirdweb Engine by following the [official documentation](https://portal.thirdweb.com/engine/getting-started)
334
+
2. Create a wallet in Thirdweb Engine for the Request Node
335
+
3. Ensure the wallet has sufficient funds for gas costs
336
+
4. Generate an access token with appropriate permissions
337
+
5. Configure the Request Node with the required environment variables (see Options table above)
338
+
339
+
**Note:** The Request Node no longer supports transaction submission through local wallets. All transactions are processed through Thirdweb Engine.
340
+
339
341
## Contributing
340
342
341
343
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
All options are optional, not specified options are read from environment variables
286
-
If the environment variable is not specified, default value is used
329
+
All options except Thirdweb Engine options are optional. Thirdweb Engine options are required and can be set via environment variables if not specified in command line.
287
330
288
331
Default mnemonic is:
289
332
${defaultValues.wallet.mnemonic}
333
+
NOTE: This mnemonic should ONLY be used for testing on private networks.
0 commit comments