Zum Inhalt springen
GET /v1/view

Call any Move view function (read-only, like eth_call)

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Return value(s) of the Move #[view] function, executed read-only against current chain state (no transaction). Numeric arguments are passed as strings, as the Aptos API expects.",
        "result": [
            1
        ],
        "source": "Aptos fullnode REST /view",
        "function": "0x1::chain_id::get",
        "arguments": [],
        "type_arguments": []
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:05.884Z",
        "request_id": "4ad462d8-b8ab-4025-b46b-e36da52b7546"
    },
    "status": "ok",
    "message": "View call executed successfully",
    "success": true
}