/v1/meta
Service metadata
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/decred-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/decred-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/decred-api/v1/meta");
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/decred-api/v1/meta",
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": {
"source": "dcrdata explorer API (dcrdata.decred.org, live)",
"service": "decred-api",
"consensus": "hybrid PoW/PoS",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/block": "A block by height or hash (height=1087000 or hash=64 hex).",
"GET /v1/supply": "Mined and ultimate DCR supply and percent issued.",
"GET /v1/address": "An address's received, sent and unspent DCR (address=Dcur2mcGjmENx4DhNqDctW5wJCVyT3Qeqkx).",
"GET /v1/network": "Chain head — best block, PoW + stake difficulty, ticket pool.",
"GET /v1/staking": "Ticket pool size/value, current + next ticket price, estimates."
},
"best_block": 1087582,
"description": "Live on-chain data from the Decred (DCR) blockchain via the public dcrdata explorer API. Decred is a hybrid proof-of-work / proof-of-stake cryptocurrency with on-chain governance: blocks are mined by PoW but validated by PoS tickets bought from a ticket pool. The network endpoint returns the chain head (best block, PoW difficulty, stake difficulty, ticket pool); the staking endpoint returns ticket-pool size and value, the current and next ticket price (stake difficulty) and next-price estimates; the supply endpoint returns the mined and ultimate DCR supply and percent issued; the block endpoint returns any block by height or hash; the address endpoint returns an address's received, sent and unspent DCR. Live, no key, nothing stored. Distinct from the Bitcoin, EOS, Internet Computer and other on-chain APIs and from price feeds — this is Decred's own hybrid PoW/PoS ticket pool, stake and on-chain governance layer.",
"native_token": "DCR",
"supply_cap_dcr": 21000000,
"upstream_status": "ok"
},
"meta": {
"timestamp": "2026-06-10T13:59:13.223Z",
"request_id": "ebd36879-ccdb-4876-a179-6e3877b085ae"
},
"status": "ok",
"message": "Meta",
"success": true
}