Zum Inhalt springen
GET /v1/function

A single Move function's normalized signature

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/suimodules-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "name": "value",
        "note": "A single Move function's normalized signature: visibility, entry flag, type parameters (with abilities), parameter type tags and return type tags.",
        "module": "coin",
        "return": [
            "U64"
        ],
        "source": "Sui fullnode JSON-RPC",
        "package": "0x2",
        "function": "value",
        "is_entry": false,
        "parameters": [
            {
                "Reference": {
                    "Struct": {
                        "name": "Coin",
                        "module": "coin",
                        "address": "0x2",
                        "typeArguments": [
                            {
                                "TypeParameter": 0
                            }
                        ]
                    }
                }
            }
        ],
        "visibility": "Public",
        "type_parameters": [
            {
                "abilities": []
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:06.230Z",
        "request_id": "40cc27a6-1af9-4a1a-aa40-3d0d4f9f6c9a"
    },
    "status": "ok",
    "message": "Function retrieved successfully",
    "success": true
}