API
कोड उदाहरण
/api/v1 कॉन्ट्रैक्ट के वास्तविक कॉल। हेडर X-API-Key के साथ प्रमाणीकरण।
NZOChainREST API v1 एकीकरण के व्यावहारिक उदाहरण।
वॉलेट जोखिम — cURL
curl -X POST "https://api.nzochain.com/api/v1/wallets/risk?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_live_आपकी_कुंजी" \
-d '{"wallet":"0x...","network":"ethereum"}'ट्रांजैक्शन फ़ायरवॉल — JavaScript
const res = await fetch('https://api.nzochain.com/api/v1/transactions/analyze?lang=en', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'pk_live_आपकी_कुंजी',
},
body: JSON.stringify({
chainId: 1,
wallet: '0x...',
to: '0x...',
calldata: '0x095ea7b3...',
value: '0',
}),
});
const { data } = await res.json();
// data.decision → ALLOW | REVIEW | BLOCKसिमुलेशन — Python
import requests
res = requests.post(
"https://api.nzochain.com/api/v1/transactions/simulate",
headers={"X-API-Key": "pk_live_आपकी_कुंजी"},
json={
"wallet": "0x...",
"network": "ethereum",
"tx": {"to": "0x...", "data": "0x...", "value": "0"},
},
)
print(res.json())