/v1/function
Decode a 4-byte function selector to its signature(s)
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/ethsignatures-api/v1/function" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ethsignatures-api/v1/function", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ethsignatures-api/v1/function");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/ethsignatures-api/v1/function",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "All function signatures whose keccak-256 hash starts with this 4-byte selector. most_likely (lowest id) is the original / canonical one; the rest are hash collisions.",
"count": 6,
"source": "4byte.directory",
"signatures": [
{
"id": 145,
"most_likely": true,
"text_signature": "transfer(address,uint256)"
},
{
"id": 31780,
"most_likely": false,
"text_signature": "many_msg_babbage(bytes1)"
},
{
"id": 161159,
"most_likely": false,
"text_signature": "transfer(bytes4[9],bytes5[6],int48[11])"
},
{
"id": 313067,
"most_likely": false,
"text_signature": "func_2093253501(bytes)"
},
{
"id": 844280,
"most_likely": false,
"text_signature": "join_tg_invmru_haha_fd06787(address,bool)"
},
{
"id": 1111734,
"most_likely": false,
"text_signature": "workMyDirefulOwner(uint256,uint256)"
}
],
"most_likely": "transfer(address,uint256)",
"hex_signature": "0xa9059cbb"
},
"meta": {
"timestamp": "2026-06-14T08:04:18.714Z",
"request_id": "89d2c275-2ceb-43a9-a3f2-8f5606f346d8"
},
"status": "ok",
"message": "Function signature decoded successfully",
"success": true
}