/v1/credit-classes
On-chain carbon-credit classes
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/regen-api/v1/credit-classes" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/regen-api/v1/credit-classes", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/regen-api/v1/credit-classes");
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/regen-api/v1/credit-classes",
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": "The Regen on-chain credit classes — each class is a category of ecological credit (e.g. carbon 'C', biodiversity) with its admin and credit type. Pass limit (1-100, default 25). total is the chain-wide class count.",
"count": 13,
"total": 13,
"source": "Regen Network (regen-1) LCD",
"classes": [
{
"id": "C01",
"admin": "regen123a7e9gvgm53zvswc6daq7c85xtzt8263lgasm",
"metadata": "regen:13toVgkhsDeQTJA1DJ1diGYTb3Cmy1rZV24auNXxNPTcVTySoiFtiFq.rdf",
"credit_type": "C"
},
{
"id": "C02",
"admin": "regen123a7e9gvgm53zvswc6daq7c85xtzt8263lgasm",
"metadata": "regen:13toVgasFvVdGFg5VeijGetEbGHSJZwBc4jUVei2euKFgE6wqNp2Hgz.rdf",
"credit_type": "C"
},
{
"id": "C03",
"admin": "regen1dlszg2sst9r69my4f84l3mj66zxcf3umcgujys30t84srg95dgvs8rn9rj",
"metadata": "regen:13toVgLqqFAjByA2kZkDFq7PZB2HUyD3u8qFDiBidYjpdYBLeJvAzxB.rdf",
"credit_type": "C"
},
{
"id": "C04",
"admin": "regen1c799jddmlz7segvg6jrw6w2k6svwafganjdznard3tc74n7td7rq39fqdp",
"metadata": "regen:13toVgBisQqEmauHntQsW6mwpz71RSTwsjzhn9gxCQ16tdRjHPHTRoK.rdf",
"credit_type": "C"
},
{
"id": "KSH01",
"admin": "regen1v2ncquer9r2ytlkxh2djmmsq3e8we6rjc9snfn",
"metadata": "regen:13toVh3S3R9HK4CcvnWDAQDbpwekWosPNQhVn8drrjziNznPnZdmCm9.rdf",
"credit_type": "KSH"
},
{
"id": "C05",
"admin": "regen1v2ncquer9r2ytlkxh2djmmsq3e8we6rjc9snfn",
"metadata": "regen:13toVhdQSiTZYzdGS41TfEZJ1L4STgYrkixNxPT5R5ZkSjkMUFT11DA.rdf",
"credit_type": "C"
},
{
"id": "C06",
"admin": "regen1v2ncquer9r2ytlkxh2djmmsq3e8we6rjc9snfn",
"metadata": "regen:13toVgBs6FCuyDebxKFWf5cJQZipWkrN6zZNhPeGBjfnqBFmhTbxj9u.rdf",
"credit_type": "C"
},
{
"id": "C07",
"admin": "regen123a7e9gvgm53zvswc6daq7c85xtzt8263lgasm",
"metadata": "regen:13toVhUaK2XtanaM3JLYzfEoUUSA5QYcMmJygejwyeo5ENc6GAdMvQA.rdf",
"credit_type": "C"
},
{
"id": "BT01",
"admin": "regen1v2ncquer9r2ytlkxh2djmmsq3e8we6rjc9snfn",
"metadata": "regen:13toVhP28vRJKkkKCfiWod83aUUKQnvutB3U3v6wdLjnS6J2GF2HcoC.rdf",
"credit_type": "BT"
},
{
"id": "MBS01",
"admin": "regen1tkkdcmq3r8al600hg5m95z62rxvdz27s9trxjnvte6z9ffvlf0ssjax9w9",
"metadata": "regen:13toVhmG8hxSeQseTQG51EwNpjoqLe6k9C1t3XY3PZohX6AttnuJ
…