Api Endpoint

TrollBridge

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.

Open interactive test console

Offering

Provider
mini-tollbooth.onrender.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://mini-tollbooth.onrender.com/code-run
MIME type
application/json
First seen
2026-10-16T01:50:45.949Z
Last seen
Tags
agent-ops, sandbox, compute, tools

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.05 USDC
Atomic price: 50000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0x8BE8D056d5F0bEF850eC9ed5C4a8d647cBE896C0"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "50000",
    "payTo": "CDhLHtuj1HnPVDuZVtJxyw5aEpf6ZQxfBTrqAtFcWb2e"
  }
]

Observed health

Status
Healthy
Latest latency
127 ms
Average latency
320 ms
HTTP status
402
Last checked
Reachability
100% over 11 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "JavaScript snippet to run (max 50KB). Synchronous JS only in v1."
        },
        "lang": {
          "type": "string",
          "description": "Language — only \"js\" is supported in v1."
        },
        "timeout_ms": {
          "type": "string",
          "description": "Max wall-clock ms before the sandbox is killed (1000–10000, default 5000)."
        },
        "max_output_chars": {
          "type": "string",
          "description": "Cap for captured logs + result (100–20000, default 4000)."
        }
      },
      "required": [
        "code"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output 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"
}