跳至主要內容

Solana QuickStart

更新於
Aug 07, 2026

The quickest way to start building on Solana 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 Solana Endpoint

1

建立Quicknode

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

2

前往您的儀表板

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

3

建立新的endpoint

Click Create an Endpoint in the top-right corner, select Solana 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 Solana blockchain. We’ll use the getSlot method, which returns the slot number. 請選擇您偏好的語言或SDK 依照以下步驟發送您的第一個請求.


1

Get Slot

To run the cURL request, open a terminal window and paste the following code to retrieve the current slot.

curl 'YOUR_QUICKNODE_ENDPOINT_URL/' \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1, "method":"getSlot"}'

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