/v1/functions
Callable functions of a module, filterable by kind
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/aptosmodules-api/v1/functions" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/aptosmodules-api/v1/functions", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/aptosmodules-api/v1/functions");
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/aptosmodules-api/v1/functions",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"kind": "view",
"note": "The module's callable functions, filtered by kind (entry = state-changing transactions, view = read-only queries). Each lists its parameter and return types.",
"count": 15,
"module": "coin",
"source": "Aptos fullnode REST",
"address": "0x1",
"functions": [
{
"name": "name",
"params": [],
"return": [
"0x1::string::String"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "symbol",
"params": [],
"return": [
"0x1::string::String"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "decimals",
"params": [],
"return": [
"u8"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "balance",
"params": [
"address"
],
"return": [
"u64"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "is_balance_at_least",
"params": [
"address",
"u64"
],
"return": [
"bool"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "supply",
"params": [],
"return": [
"0x1::option::Option<u128>"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "coin_supply",
"params": [],
"return": [
"0x1::option::Option<u128>"
],
"is_view": true,
"is_entry": false,
"visibility": "public",
"generic_type_params": 1
},
{
"name": "is_account_registered",
"params": [
"address"
],
"return": [
"bool"
],
…