跳至主要內容

Ton QuickStart

更新於
2026年3月27日

The quickest way to start building on Ton 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 other popular programming languages.

Get Your Ton Endpoint

1

建立Quicknode

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

2

前往您的儀表板

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

3

建立新的endpoint

Click Create an Endpoint in the top-right corner, select Ton 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 Ton blockchain. We'll use the getMasterchainInfo method, which retrieves masterchain information. Select your preferred language and follow the steps below to send your first request.


1

檢查 cURL 的安裝狀況

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

curl --version
2

Send a GET request

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

curl --location 'YOUR_QUICKNODE_ENDPOINT_URL/getMasterchainInfo' \
--header 'accept: application/json'
3

範例回應

{
"ok": true,
"result": {
"workchain": -1,
"shard": -9223372036854775808,
"seqno": 12345678,
"root_hash": "abc123...",
"file_hash": "def456..."
}
}

如果您想進一步了解如何發送 API 請求,請參閱我們的指南和 範例應用程式