Execute a command inside a running sandbox
sol.blockrun.ai/api/v1/modal/sandbox/exec
Execute a command inside a running sandbox. Returns stdout, stderr, and exit code.
POST
https://sol.blockrun.ai/api/v1/modal/sandbox/execUptimeNot checked yet
30 days agoToday
Call it from an agent
curl -i -X POST -H 'content-type: application/json' "https://sol.blockrun.ai/api/v1/modal/sandbox/exec" \
-d '{"command":[],"timeout":1,"sandbox_id":"string"}'
# 402 Payment Required comes back with the price and where to pay.Example input
{
"command": [],
"timeout": 1,
"sandbox_id": "string"
}