Bitcoin
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Bitcoin
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
This page lists every Bitcoin Core JSON-RPC method TheRPC serves on https://bitcoin.therpc.io/YOUR_API_KEY, grouped by what it does — reading the chain and blocks, inspecting the mempool, looking up and broadcasting raw transactions, estimating fees, and validating addresses. Each entry shows the method's purpose and links to its full page; click any method name to open its parameters, response shape, error codes, and copy-paste examples in curl, JavaScript, Python, and Go. TheRPC runs a shared, multi-tenant endpoint, so the surface is limited to public read and broadcast calls. Wallet methods (sendtoaddress, getnewaddress, key management) and node-admin methods (stop, addnode, setban) are not exposed — they operate on a single node's private wallet and configuration and have no place on a shared endpoint.
quick-startGet a TheRPC API key and make your first Bitcoin Core JSON-RPC call with curl, JavaScript, and Python in minutes — no bitcoind to run, no node to sync.
authenticationObtain, place, and secure a TheRPC API key for Bitcoin Core JSON-RPC — URL-path and Bearer header auth, environment-variable setup, and auth error handling.
rate-limitsHow TheRPC rate-limits Bitcoin Core JSON-RPC requests, what the error and headers look like, and how to handle them with backoff, batching, caching, and tip polling.
api-overviewTechnical overview of TheRPC's Bitcoin Core JSON-RPC API — the HTTP endpoint, legacy 1.0 request and response envelopes, positional params, auth, and method groups.
faqBitcoin Core JSON-RPC FAQ on TheRPC — authentication, rate limits, error codes, transaction tracking, confirmations, reorgs, txindex, and mainnet vs testnet.
basic-operationsCommon Bitcoin Core JSON-RPC operations on TheRPC — read chain state and blocks, look up transactions, check UTXOs, estimate fees, validate addresses, and broadcast.
all-methodsEvery supported Bitcoin Core JSON-RPC method on TheRPC — block and chain reads, mempool, raw transaction lookup and broadcast, fee estimation, and address utilities.
getbestblockhashCall getbestblockhash on Bitcoin to get the hash of the current chain tip — the best block in the most-work fully-validated chain.
getblockCall getblock on Bitcoin to fetch a block by hash at verbosity 0–3, from raw hex to full transaction objects with prevouts.
getblockchaininfoCall getblockchaininfo on Bitcoin to read chain, height, tip hash, difficulty, and sync progress from one JSON-RPC response.
getblockcountCall getblockcount on Bitcoin to get the height of the most-work fully-validated chain, where genesis is 0, for confirmation math.
getblockhashCall getblockhash on Bitcoin to resolve a block height to its hash on the active chain before fetching block or header data.
getblockheaderCall getblockheader on Bitcoin to read header metadata as JSON, or the raw 80-byte hex header, without pulling the full block body.
getblockstatsCall getblockstats on Bitcoin for fee percentiles, sizes, and input/output counts of a block, with all amounts in satoshis.
getchaintipsCall getchaintips on Bitcoin to list every known tip — the active chain plus stale and invalid branches — for reorg detection.
getchaintxstatsCall getchaintxstats on Bitcoin to read total transaction count and the network transaction rate over a recent block window.
getdifficultyCall getdifficulty on Bitcoin to read the current Proof-of-Work difficulty as a multiple of the minimum target.
gettxoutCall gettxout on Bitcoin to read an unspent output from the UTXO set — its value, script, and confirmations — or null if spent.
gettxoutproofCall gettxoutproof on Bitcoin to get a hex Merkle proof that one or more txids were mined into a block, for SPV-style checks.
verifytxoutproofCall verifytxoutproof on Bitcoin to validate a gettxoutproof Merkle proof against the best chain and get the committed txids.
getmempoolancestorsCall getmempoolancestors on Bitcoin to list the unconfirmed parent transactions a pending BTC transaction depends on, via TheRPC JSON-RPC.
getmempooldescendantsCall getmempooldescendants on Bitcoin to list the unconfirmed child transactions that spend a pending BTC transaction's outputs, via TheRPC JSON-RPC.
getmempoolentryCall getmempoolentry on Bitcoin to read the fee, vsize, and ancestry of one unconfirmed BTC transaction in the mempool, via TheRPC JSON-RPC.
getmempoolinfoCall getmempoolinfo on Bitcoin to read live mempool size, memory usage, and the minimum relay fee floor for new BTC transactions, via TheRPC JSON-RPC.
getrawmempoolCall getrawmempool on Bitcoin to list every txid in the node's mempool, optionally with per-transaction fee and ancestry detail, via TheRPC JSON-RPC.
createrawtransactionBuild an unsigned Bitcoin (BTC) raw transaction from UTXO inputs and outputs over JSON-RPC — no signing, no broadcast — with createrawtransaction.
decoderawtransactionDecode a serialized Bitcoin (BTC) transaction hex into a JSON object — vin, vout, txid — with no chain lookup, via the Bitcoin JSON-RPC endpoint.
decodescriptDecode a hex Bitcoin (BTC) script into ASM, type, address, and its P2SH wrap via the Bitcoin JSON-RPC endpoint with decodescript.
getrawtransactionFetch Bitcoin (BTC) transaction data by txid — raw hex or decoded JSON, with fee and prevout at verbosity 2 — via the Bitcoin JSON-RPC endpoint.
sendrawtransactionBroadcast a signed Bitcoin (BTC) raw transaction to the network and get its txid back, via the Bitcoin JSON-RPC endpoint with sendrawtransaction.
testmempoolacceptDry-run Bitcoin (BTC) mempool acceptance for one or more raw transactions without broadcasting, via the Bitcoin JSON-RPC endpoint with testmempoolaccept.
getmininginfoCall getmininginfo on Bitcoin to read difficulty, estimated network hashrate, mempool size and chain in one JSON-RPC request.
getnetworkhashpsCall getnetworkhashps on Bitcoin to estimate network hashes per second over a chosen block window or at a historical height via JSON-RPC.
getnetworkinfoCall getnetworkinfo on Bitcoin to read the node's Core version, relay fee floors and P2P connection state over JSON-RPC.
deriveaddressesUse Bitcoin's deriveaddresses JSON-RPC method to turn an output descriptor into one or more BTC addresses, no wallet required.
estimatesmartfeeUse Bitcoin's estimatesmartfee JSON-RPC method to get the BTC/kvB fee rate needed to confirm a transaction within a target number of blocks.
getindexinfoUse Bitcoin's getindexinfo JSON-RPC method to check which indexes (txindex, block filter, coinstats) are enabled and synced on the node.
validateaddressUse Bitcoin's validateaddress JSON-RPC method to check a BTC address, get its scriptPubKey, and detect its type — no wallet or key access.
verifymessageUse Bitcoin's verifymessage JSON-RPC method to check a base64 signature against a BTC address and message, proving address ownership.
curlCall the Bitcoin Core JSON-RPC API with curl over TheRPC — auth, the legacy 1.0 envelope, and BTC chain, block, and transaction lookups.
javascript-typescriptCall the Bitcoin Core JSON-RPC API from JavaScript or TypeScript on TheRPC using axios or fetch — a reusable rpc() helper, reading BTC data, and broadcasting.
pythonCall the Bitcoin Core JSON-RPC API from Python on TheRPC with requests or python-bitcoinrpc AuthServiceProxy — read BTC blocks, gettxout UTXOs, and broadcast.
goCall the Bitcoin Core JSON-RPC API from Go on TheRPC using net/http — a reusable client, reading BTC chain and block data, gettxout UTXOs, and broadcasting.
utxo-modelLearn the Bitcoin UTXO model via JSON-RPC — what a UTXO is, why there are no account balances, reading outputs with gettxout, and coin selection.
transaction-confirmationsHow Bitcoin confirmations work — count them via JSON-RPC, choose thresholds by value, and detect reorgs before treating a BTC payment as final.
fee-estimationEstimate Bitcoin transaction fees via JSON-RPC — convert estimatesmartfee BTC/kvB to sat/vB, read the mempool floor, and pick a fee tier for confirmation.
reading-raw-transactionsFetch and decode Bitcoin transactions with getrawtransaction and decoderawtransaction — verbosity levels, vin/vout structure, segwit, and txindex.
broadcasting-transactionsBuild, sign client-side, dry-run, and broadcast Bitcoin transactions over JSON-RPC using createrawtransaction, testmempoolaccept, and sendrawtransaction.