Bitcoin RPC Endpoints
Mainnet
HTTPS
https://api-bitcoin-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>
Quick Start
BASH
curl -sS -X POST https://api-bitcoin-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots> \-H 'Content-Type: application/json' \-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
JAVASCRIPT
import { JsonRpcProvider } from 'ethers';const provider = new JsonRpcProvider('https://api-bitcoin-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>');const latest = await provider.getBlockNumber();console.log('block', latest);
PYTHON
import requestsurl = 'https://api-bitcoin-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>'payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': [] }resp = requests.post(url, json=payload)print(resp.json())
GO
package mainimport ("bytes""fmt""net/http""io/ioutil")func main() {url := "https://api-bitcoin-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>"payload := []byte("{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_blockNumber\",\"params\":[]}")resp, err := http.Post(url, "application/json", bytes.NewBuffer(payload))if err != nil { panic(err) }defer resp.Body.Close()body, _ := ioutil.ReadAll(resp.Body)fmt.Println(string(body))}
Bitcoin is the first and largest proof-of-work blockchain. Miners add a block about every 10 minutes and no company or foundation operates the network. Bitcoin Core exposes a JSON-RPC interface for reading blocks, inspecting unspent outputs, estimating fees, and broadcasting signed transactions. Dwellir runs unpruned Bitcoin Core nodes with the transaction index enabled, so you can fetch any confirmed transaction by hash.
Shared Node Pricing
How many calls do you make per month?
/ month
Growth
$299
/month
- 500 Responses /sec
- Dedicated Account Manager
Bitcoin Unlimited Node
- Unmetered requests within your tier
- Five tiers from 25 to 1,000 RPS
- No API credits, no overages
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Same endpoint URL and API key
- Self-serve in the dashboard
- Fixed monthly invoice
Developer Resources
FAQs
Which Bitcoin RPC methods can I call?
Can I look up any historical transaction?
Does the Bitcoin endpoint support WebSocket subscriptions?
How do I broadcast a transaction?
When do I need a dedicated Bitcoin cluster?
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure