Decompile smart contract bytecode directly with our powerful API
Sign up and generate your API key from the dashboard
Top up your API balance securely with Stripe payment processing
Send bytecode to our API and get decompiled Solidity code
per decompilation
per decompilation
All API requests require authentication using your API key. Include it in the request header:
x-api-key: your-api-key-here
/api/v1/api/decompile/bytecode
Decompile contract bytecode. Returns a job ID to poll for status.
{ "bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063...", "model": "basic" // "basic" or "pro" }
{ "job_id": "uuid-or-external-job-id", "message": "Decompilation job started successfully" }
/api/v1/api/decompile/status/{job_id}
Get the status of a decompilation job.
{ "job_id": "uuid-or-external-job-id", "status": "done", // "pending", "processing", "done", "error" "result": { /* decompiler result */ }, "error": null, "created_at": "2024-01-01T12:00:00Z", "updated_at": "2024-01-01T12:05:00Z" }
curl -X POST "https://api.evmdecompiler.com/api/v1/api/decompile/bytecode" \
-H "x-api-key: your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063...",
"model": "basic"
}'
const response = await fetch('https://api.evmdecompiler.com/api/v1/api/decompile/bytecode', {
method: 'POST',
headers: {
'x-api-key': 'your-api-key-here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
bytecode: '0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063...',
model: 'basic'
})
});
const data = await response.json();
console.log(data.job_id);
import requests
url = "https://api.evmdecompiler.com/api/v1/api/decompile/bytecode"
headers = {
"x-api-key": "your-api-key-here",
"Content-Type": "application/json"
}
data = {
"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063...",
"model": "basic"
}
response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result["job_id"])
Invalid or missing API key
Insufficient balance for the requested operation
Invalid request data or missing required fields
Job not found or access denied
API requests are limited to prevent abuse and ensure fair usage: