Compile Solidity contracts with the Remix compiler, supporting multiple files, custom vers
Compile Solidity contracts with the Remix compiler, supporting multiple files, custom versions, and optimization settings
10000 (raw units)
price
7
calls / 30d
5
unique payers
2026-09-18
updated
Provider
api.remix.live · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x4CF33cCB14B43D76b4f672C3feDe297d1d763ace",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"sources": {
"MyToken.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract MyToken {\n string public name = \"MyToken\";\n}"
}
},
"version": "v0.8.35+commit.47b9dedd"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"contracts": {
"MyToken.sol": {
"MyToken": {
"abi": [],
"evm": {
"bytecode": {
"object": "0x608060405..."
}
}
}
}
},
"success": true,
"version": "v0.8.35+commit.47b9dedd"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"settings": {
"description": "Compiler settings",
"type": "object"
},
"sources": {
"additionalProperties": {
"properties": {
"content": {
"type": "string"
}
},
"required": [
"content"
],
"type": "object"
},
"description": "Map of filename to source code",
"type": "object"
},
"version": {
"description": "Solidity compiler version",
"type": "string"
}
},
"required": [
"sources"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.remix.live/mcp/x402-http/compile" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.remix.live/mcp/x402-http/compile");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.remix.live/mcp/x402-http/compile")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/2963.json, and this resource appears in /discovery/resources and /discovery/search.