Ir al contenido
GET /v1/abi

The contract ABI plus function and event name lists

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/contractverify-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/contractverify-api/v1/abi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/contractverify-api/v1/abi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/contractverify-api/v1/abi");
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/contractverify-api/v1/abi",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "abi": [
            {
                "name": "upgradeTo",
                "type": "function",
                "inputs": [
                    {
                        "name": "newImplementation",
                        "type": "address"
                    }
                ],
                "outputs": [],
                "payable": false,
                "constant": false,
                "stateMutability": "nonpayable"
            },
            {
                "name": "upgradeToAndCall",
                "type": "function",
                "inputs": [
                    {
                        "name": "newImplementation",
                        "type": "address"
                    },
                    {
                        "name": "data",
                        "type": "bytes"
                    }
                ],
                "outputs": [],
                "payable": true,
                "constant": false,
                "stateMutability": "payable"
            },
            {
                "name": "implementation",
                "type": "function",
                "inputs": [],
                "outputs": [
                    {
                        "name": "",
                        "type": "address"
                    }
                ],
                "payable": false,
                "constant": true,
                "stateMutability": "view"
            },
            {
                "name": "changeAdmin",
                "type": "function",
                "inputs": [
                    {
                        "name": "newAdmin",
                        "type": "address"
                    }
                ],
                "outputs": [],
                "payable": false,
                "constant": false,
                "stateMutability": "nonpayable"
            },
            {
                "name": "admin",
                "type": "function",
                "inputs": [],
                "outputs": [
                    {
                        "name": "",
                        "type": "address"
                    }
                ],
                "payable": false,
                "constant": true,
                "stateMutability": "view"
            },
            {
                "type": "constructor",
                "inputs": [
                    {
                        "name": "_implementation",
                        "type": "address"
                    }
                ],
                "payable": false,
                "stateMutability": "nonpayable"
            },
            {
                "type": "fallback",
                "payable": true,
                "stateMutability": "payable"
            },
            {
                "name": "AdminChanged",
                "type": "event",
                "inputs": [
                    {
                        "name": "previousAdmin",
                        "type": "address",
       
…