Bitcoin
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Bitcoin
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
curl is the fastest way to poke at the Bitcoin Core JSON-RPC API on TheRPC: you can check the chain tip, look up a block or transaction, or broadcast a signed transaction without installing a single library — ideal for testing an endpoint, debugging a failing call, or scripting a quick UTXO check from the shell. Every call is an HTTP POST with Content-Type: application/json to https://bitcoin.therpc.io/YOUR_API_KEY, where YOUR_API_KEY is the key from your TheRPC dashboard. Bitcoin Core speaks the legacy JSON-RPC 1.0 envelope — {"jsonrpc":"1.0","id":"therpc","method":...,"params":[...]} — with a string id and positional params (an ordered array, never named keys), so argument order matters on every method.
Authentication is just your TheRPC key in the URL path — https://bitcoin.therpc.io/YOUR_API_KEY. If you prefer to keep the key out of the path, send it instead as Authorization: Bearer YOUR_API_KEY against the bare host; both forms are accepted. Either way, the request must be a POST carrying the Content-Type: application/json header — a GET or a missing content type will be rejected before it ever reaches a Bitcoin node.