/v1/contract
One contract in full
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/tezoscontracts-api/v1/contract" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tezoscontracts-api/v1/contract", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tezoscontracts-api/v1/contract");
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/tezoscontracts-api/v1/contract",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "One Tezos smart contract in full: its XTZ balance, creator, lifetime transaction and token activity, code/type hash (contracts sharing a code hash run identical Michelson) and current delegate. Omit address to use the highest-balance contract.",
"alias": null,
"source": "TzKT",
"address": "KT1CeFqjJRJPNVvhvznQrWfHad2jCiDZ6Lyj",
"creator": "tz1etHLky7fuVumvBDi92ogXQZZPESiFimWR",
"delegate": null,
"code_hash": 252039085,
"type_hash": 738638697,
"balance_xtz": 15579954.372733,
"tokens_count": 0,
"last_activity": "2026-06-14T17:02:16Z",
"first_activity": "2024-04-02T13:34:16Z",
"num_originations": 1,
"num_transactions": 121385,
"active_tokens_count": 0,
"token_transfers_count": 0
},
"meta": {
"timestamp": "2026-06-14T17:03:52.986Z",
"request_id": "74c356b5-4bd0-4cfc-85e1-cea13979c072"
},
"status": "ok",
"message": "Contract retrieved successfully",
"success": true
}