curl --request POST \
--url https://api.webacy.com/scan/{fromAddress}/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"tx": {
"from": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326",
"raw": "0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0"
},
"chain": 1
}
'import requests
url = "https://api.webacy.com/scan/{fromAddress}/transactions"
payload = {
"tx": {
"from": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326",
"raw": "0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0"
},
"chain": 1
}
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({
tx: {
from: '0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326',
raw: '0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0'
},
chain: 1
})
};
fetch('https://api.webacy.com/scan/{fromAddress}/transactions', 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://api.webacy.com/scan/{fromAddress}/transactions",
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([
'tx' => [
'from' => '0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326',
'raw' => '0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0'
],
'chain' => 1
]),
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://api.webacy.com/scan/{fromAddress}/transactions"
payload := strings.NewReader("{\n \"tx\": {\n \"from\": \"0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326\",\n \"raw\": \"0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0\"\n },\n \"chain\": 1\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://api.webacy.com/scan/{fromAddress}/transactions")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tx\": {\n \"from\": \"0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326\",\n \"raw\": \"0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0\"\n },\n \"chain\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.webacy.com/scan/{fromAddress}/transactions")
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 \"tx\": {\n \"from\": \"0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326\",\n \"raw\": \"0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0\"\n },\n \"chain\": 1\n}"
response = http.request(request)
puts response.read_body{
"simulation": "<array>",
"block": 123,
"timestamp": "2023-11-07T05:31:56Z",
"chain": "eth",
"domainRisk": {
"riskLevel": "low",
"description": "<string>",
"message": "<string>"
},
"public_key_id": "<string>",
"descriptor": "<string>"
}Simulate a raw EVM transaction for security risks
Analyzes a raw EVM transaction for security risks including malicious contracts, suspicious addresses, and potential threats. Supports Ethereum (1), BSC (56), Polygon (137), Optimism (10), Arbitrum (42161), and Base (8453).
curl --request POST \
--url https://api.webacy.com/scan/{fromAddress}/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"tx": {
"from": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326",
"raw": "0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0"
},
"chain": 1
}
'import requests
url = "https://api.webacy.com/scan/{fromAddress}/transactions"
payload = {
"tx": {
"from": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326",
"raw": "0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0"
},
"chain": 1
}
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({
tx: {
from: '0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326',
raw: '0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0'
},
chain: 1
})
};
fetch('https://api.webacy.com/scan/{fromAddress}/transactions', 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://api.webacy.com/scan/{fromAddress}/transactions",
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([
'tx' => [
'from' => '0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326',
'raw' => '0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0'
],
'chain' => 1
]),
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://api.webacy.com/scan/{fromAddress}/transactions"
payload := strings.NewReader("{\n \"tx\": {\n \"from\": \"0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326\",\n \"raw\": \"0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0\"\n },\n \"chain\": 1\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://api.webacy.com/scan/{fromAddress}/transactions")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tx\": {\n \"from\": \"0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326\",\n \"raw\": \"0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0\"\n },\n \"chain\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.webacy.com/scan/{fromAddress}/transactions")
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 \"tx\": {\n \"from\": \"0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326\",\n \"raw\": \"0x02f86f01830c61ff847735940084aa945e38829c409496221423681a6d52e184d440a8efcebb105c724280b844a9059cbb0000000000000000000000001f9090aae28b8a3dceadf281b0f12828e676c3260000000000000000000000000000000000000000000000056bc75e2d63100000c0\"\n },\n \"chain\": 1\n}"
response = http.request(request)
puts response.read_body{
"simulation": "<array>",
"block": 123,
"timestamp": "2023-11-07T05:31:56Z",
"chain": "eth",
"domainRisk": {
"riskLevel": "low",
"description": "<string>",
"message": "<string>"
},
"public_key_id": "<string>",
"descriptor": "<string>"
}Query Parameters
Body
With a 66-character transaction hash in tx.raw: the block of the mined transaction. With raw transaction bytes: the block whose state the simulation runs against, to replay a transaction's asset changes as of that block (pass a block before the one that mined it). Only the simulation is pinned: address and token risk use current data. A pinned replay returns no signed descriptor (and no public_key_id), since it does not describe the transaction against today's state. Omit it to simulate against the latest block. A block past the chain head is rejected.
12345678
Safe operation for raw transaction bytes. 1 simulates the call as a DELEGATECALL made by the Safe at fromAddress, through the Safe's own execTransaction: the target's code runs on the Safe's storage, address and balance (for example a MultiSend batch), so the asset changes are the Safe's, and the delegatecall target is always scored. The transaction value is ignored, as the Safe ignores it for a delegatecall. 0 or omitted is a plain call. 1 is not accepted with a transaction hash, with bytes that are already mined, or with bytes that have no to. An operation: 1 scan returns no signed descriptor (and no public_key_id): the descriptor cannot say the call ran as a delegatecall.
0, 1 1
Response
Transaction risk analysis completed successfully
