跳至主要內容

Bitcoin Cash QuickStart

更新於
Aug 07, 2026

The quickest way to start building on Bitcoin Cash with Quicknode is by sending a JSON-RPC request to your endpoint. In this quickstart, you'll create an endpoint, copy its provider URL, and make your first request. Code samples are available in cURL as well as popular SDKs and programming languages.

Get Your Bitcoin Cash Endpoint

1

建立Quicknode

若您尚未註冊,請點此註冊。

2

前往您的儀表板

從左側邊欄選單開啟「端點」儀表板,以管理您所有的區塊鏈端點

3

建立新的endpoint

Click Create an Endpoint in the top-right corner, select Bitcoin Cash as your blockchain, then select your preferred network

4

複製您的服務供應商網址

請將該 HTTP URL 備妥。您將在以下請求中使用它。

進一步了解儀表板

如需了解Quicknode 詳細操作指南,請參閱我們的 指南

發送您的第一項請求

Your endpoint is ready. Now, let's make your first call to the Bitcoin Cash blockchain. We'll use the getblock method, which retrieves detailed information about a specific block by its hash. 請選擇您偏好的語言或SDK 依照以下步驟發送您的第一個請求.


1

檢查 cURL 的安裝狀況

大多數基於 *nix 的系統預設即支援 cURL。請開啟終端機,並執行以下指令以檢查 cURL 的版本:

curl --version
2

傳送一個 JSON-RPC 請求

In your terminal, copy and paste the following cURL command to retrieve block information:

curl YOUR_QUICKNODE_ENDPOINT_URL/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"id": 1, "jsonrpc": "2.0", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"]}'
3

範例回應

{
"result": {
"hash": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
"confirmations": 912736,
"size": 216,
"height": 1000,
"version": 1,
"versionHex": "00000001",
"merkleroot": "fe28050b93faea61fa88c4c630f0e1f0a1c24d0082dd0e10d369e13212128f33",
"tx": [
"fe28050b93faea61fa88c4c630f0e1f0a1c24d0082dd0e10d369e13212128f33"
],
"time": 1232346882,
"mediantime": 1232344831,
"nonce": 2595206198,
"bits": "1d00ffff",
"difficulty": 1,
"chainwork": "000000000000000000000000000000000000000000000000000003e903e903e9",
"nTx": 1,
"previousblockhash": "0000000008e647742775a230787d66fdf92c46a48c896bfbc85cdc8acc67e87d",
"nextblockhash": "00000000a2887344f8db859e372e7e4bc26b23b9de340f725afbf2edb265b4c6"
},
"error": null,
"id": 1
}

If you want to continue learning about making API requests, check out our guides and sample-apps.