Aller directement au contenu principal

Ton QuickStart

Mis à jour le
27 mars 2026

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

Créer un Quicknode

Inscrivez-vous ici si ce n'est pas déjà fait.

2

Accédez à votre tableau de bord

Ouvrez le tableau de bord « Endpoints » dans le menu de la barre latérale gauche pour gérer tous vos points de terminaison blockchain.

3

Créer un nouveau endpoint

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

4

Copiez les URL de vos fournisseurs

Gardez l'URL HTTP à portée de main. Vous en aurez besoin dans les requêtes ci-dessous.

En savoir plus sur le tableau de bord

Pour découvrir en détail le Quicknode , consultez notre guide

Envoyez votre première demande

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

Vérifier l'installation de cURL

La plupart des systèmes basés sur *nix prennent en charge cURL dès leur installation. Ouvrez votre terminal et vérifiez la version de cURL en exécutant la commande ci-dessous :

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

Exemple de réponse

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

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