Vai al contenuto
GET /v1/module

Normalized ABI of one Move module: functions + structs

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/suimodules-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Normalized ABI of the Move module: exposed functions (visibility, entry flag, type parameters, parameter and return type tags) and struct definitions.",
        "module": "coin",
        "source": "Sui fullnode JSON-RPC",
        "friends": [
            {
                "name": "coin_registry",
                "address": "0x2"
            }
        ],
        "package": "0x2",
        "structs": [
            {
                "name": "Coin",
                "fields": [
                    {
                        "name": "id",
                        "type": {
                            "Struct": {
                                "name": "UID",
                                "module": "object",
                                "address": "0x2",
                                "typeArguments": []
                            }
                        }
                    },
                    {
                        "name": "balance",
                        "type": {
                            "Struct": {
                                "name": "Balance",
                                "module": "balance",
                                "address": "0x2",
                                "typeArguments": [
                                    {
                                        "TypeParameter": 0
                                    }
                                ]
                            }
                        }
                    }
                ],
                "abilities": [
                    "Store",
                    "Key"
                ],
                "type_parameters": 1
            },
            {
                "name": "CoinMetadata",
                "fields": [
                    {
                        "name": "id",
                        "type": {
                            "Struct": {
                                "name": "UID",
                                "module": "object",
                                "address": "0x2",
                                "typeArguments": []
                            }
                        }
                    },
                    {
                        "name": "decimals",
                        "type": "U8"
                    },
                    {
                        "name": "name",
                        "type": {
                            "Struct": {
                                "name": "String",
                                "module": "string",
                                "address": "0x1",
                                "typeArguments": []
                            }
                        }
                    },
                    {
                        "name": "symbol",
                        "type": {
                            "Struct": {
                                "name": "String",
                                "module": "ascii",
                             
…