跳转至主要内容

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

创建一个新的端点

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

4

复制您的服务商 URL

请将该 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 请求,请查看我们的指南示例应用

分享此文档