curl --request POST \
--url https://app.blockgence.com/v1/simulate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"from": "<string>",
"to": "<string>",
"chain": "ethereum",
"value": "0",
"data": "0x",
"block": 123,
"eval_mode": false
}
'import requests
url = "https://app.blockgence.com/v1/simulate"
payload = {
"from": "<string>",
"to": "<string>",
"chain": "ethereum",
"value": "0",
"data": "0x",
"block": 123,
"eval_mode": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '<string>',
to: '<string>',
chain: 'ethereum',
value: '0',
data: '0x',
block: 123,
eval_mode: false
})
};
fetch('https://app.blockgence.com/v1/simulate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.blockgence.com/v1/simulate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'from' => '<string>',
'to' => '<string>',
'chain' => 'ethereum',
'value' => '0',
'data' => '0x',
'block' => 123,
'eval_mode' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/simulate"
payload := strings.NewReader("{\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"chain\": \"ethereum\",\n \"value\": \"0\",\n \"data\": \"0x\",\n \"block\": 123,\n \"eval_mode\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.blockgence.com/v1/simulate")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"chain\": \"ethereum\",\n \"value\": \"0\",\n \"data\": \"0x\",\n \"block\": 123,\n \"eval_mode\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/simulate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"chain\": \"ethereum\",\n \"value\": \"0\",\n \"data\": \"0x\",\n \"block\": 123,\n \"eval_mode\": false\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Simular una tx antes de firmarla: si pasa, qué movimientos y permisos produce, con la evidencia de la simulación (15 créditos)
Simular una tx antes de firmarla: la tx se ejecuta al bloque fijado (default head − 5) sin
firmar ni enviar nada y sin cobrar gas. Responde si pasa, revierte (con el motivo decodificado) o la red la rechaza
(fondos, gas); las llamadas y eventos decodificados; los cambios de saldo por cuenta y activo, conciliados contra
el diff de estado; los permisos que otorga o revoca, con quién es el spender y sus pistas; y si deja una cuenta
delegada por EIP-7702. evidence dice el bloque, la fuente y si fue una traza (trace) o solo un eth_call. Sin
simulación posible, 503 sin cobro. Pistas, no veredictos: «sin pistas» no quiere decir segura.
Costo: 15 créditos de base (solo si la respuesta es < 400; algunas rutas cobran menos si reusan un resultado guardado).
curl --request POST \
--url https://app.blockgence.com/v1/simulate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"from": "<string>",
"to": "<string>",
"chain": "ethereum",
"value": "0",
"data": "0x",
"block": 123,
"eval_mode": false
}
'import requests
url = "https://app.blockgence.com/v1/simulate"
payload = {
"from": "<string>",
"to": "<string>",
"chain": "ethereum",
"value": "0",
"data": "0x",
"block": 123,
"eval_mode": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '<string>',
to: '<string>',
chain: 'ethereum',
value: '0',
data: '0x',
block: 123,
eval_mode: false
})
};
fetch('https://app.blockgence.com/v1/simulate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.blockgence.com/v1/simulate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'from' => '<string>',
'to' => '<string>',
'chain' => 'ethereum',
'value' => '0',
'data' => '0x',
'block' => 123,
'eval_mode' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/simulate"
payload := strings.NewReader("{\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"chain\": \"ethereum\",\n \"value\": \"0\",\n \"data\": \"0x\",\n \"block\": 123,\n \"eval_mode\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.blockgence.com/v1/simulate")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"chain\": \"ethereum\",\n \"value\": \"0\",\n \"data\": \"0x\",\n \"block\": 123,\n \"eval_mode\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/simulate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"chain\": \"ethereum\",\n \"value\": \"0\",\n \"data\": \"0x\",\n \"block\": 123,\n \"eval_mode\": false\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Autorizaciones
Encabezados
Caso activo (opcional): el token de un caso que podés ver. La consulta queda en el registro de actividad de ese caso y resuelve también sus labels propias. Un caso que no existe, se borró o ya no está compartido con vos da 400 case_unavailable y la consulta no se hace (sin cobro).
Cuerpo
Una tx sin firmar. Sin gas, gasPrice, nonce ni lista de autorización 7702: el gas no se cobra y una lista de
autorización el nodo la ignora en silencio (medido el 2026-11-16), así que se rechaza en vez de simular otra cosa.
Respuesta
Successful Response