{
  "x402Version": 2,
  "id": 36338,
  "slug": "36338",
  "resource": "https://mini-tollbooth.onrender.com/code-run",
  "description": "Sandboxed JS execution ($0.05) — run a JavaScript snippet in an isolated child process (64MB heap cap, no network, no filesystem) and get the result plus captured logs. Pragmatic sandbox, not a hardened enclave. Toll: $0.05 USDC on Base or Solana.",
  "type": "http",
  "serviceName": "TrollBridge",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8BE8D056d5F0bEF850eC9ed5C4a8d647cBE896C0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "CDhLHtuj1HnPVDuZVtJxyw5aEpf6ZQxfBTrqAtFcWb2e",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "code": "Math.max(3, 7);"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "description": "Sandboxed JS execution ($0.05) — run a JavaScript snippet in an isolated child process (64MB heap cap, no network, no filesystem) and get the result plus captured logs. Pragmatic sandbox, not a hardened enclave.",
            "execution_ms": 11,
            "lane": "/code-run",
            "lang": "js",
            "logs": "",
            "result": "7",
            "timeout_ms": 5000,
            "verdict": "ok"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "code": {
                    "description": "JavaScript snippet to run (max 50KB). Synchronous JS only in v1.",
                    "type": "string"
                  },
                  "lang": {
                    "description": "Language — only \"js\" is supported in v1.",
                    "type": "string"
                  },
                  "max_output_chars": {
                    "description": "Cap for captured logs + result (100–20000, default 4000).",
                    "type": "string"
                  },
                  "timeout_ms": {
                    "description": "Max wall-clock ms before the sandbox is killed (1000–10000, default 5000).",
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "agent-ops",
    "sandbox",
    "compute",
    "tools",
    "bazaar"
  ],
  "sourceHost": "mini-tollbooth.onrender.com",
  "lastUpdated": "2026-10-05T20:12:47Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-05T20:12:46.809Z"
  },
  "metadata": {
    "serviceName": "TrollBridge",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "code": "Math.max(3, 7);"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "description": "Sandboxed JS execution ($0.05) — run a JavaScript snippet in an isolated child process (64MB heap cap, no network, no filesystem) and get the result plus captured logs. Pragmatic sandbox, not a hardened enclave.",
              "execution_ms": 11,
              "lane": "/code-run",
              "lang": "js",
              "logs": "",
              "result": "7",
              "timeout_ms": 5000,
              "verdict": "ok"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "code": {
                      "description": "JavaScript snippet to run (max 50KB). Synchronous JS only in v1.",
                      "type": "string"
                    },
                    "lang": {
                      "description": "Language — only \"js\" is supported in v1.",
                      "type": "string"
                    },
                    "max_output_chars": {
                      "description": "Cap for captured logs + result (100–20000, default 4000).",
                      "type": "string"
                    },
                    "timeout_ms": {
                      "description": "Max wall-clock ms before the sandbox is killed (1000–10000, default 5000).",
                      "type": "string"
                    }
                  },
                  "required": [
                    "code"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "mini-tollbooth.onrender.com",
    "manifest_name": "mini-tollbooth.onrender.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}