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: apps/portal/src/app/nebula/api-reference/page.mdx
+60-13Lines changed: 60 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,40 +407,87 @@ const result = await handleNebulaResponse(data);
407
407
408
408
#### Execute Command
409
409
410
+
411
+
410
412
```bash
411
413
POST /execute
412
414
```
413
-
414
-
Execute specific blockchain commands or actions.
415
+
Execute specific blockchain commands or actions. This endpoint is designed for direct command execution without the conversational context of the chat endpoint.
-`user_id` (optional): Identifier for the user making the request
433
+
-`stream` (optional): Whether to stream the response
434
+
-`execute_config` (optional): Configuration for transaction execution
435
+
-`mode`: Execution mode (currently only "client" is supported)
436
+
-`signer_wallet_address`: Address that will sign the transaction
437
+
438
+
**Example Response:**
439
+
```json
440
+
{
441
+
"message": "The transaction is to transfer 0.0001 ETH to the address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. The transaction simulation indicates that it will most likely succeed. \n\nPlease go ahead and sign and confirm the transaction.",
0 commit comments