You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[status.toncenter](https://status.toncenter.com/) - various statistics of nodes activity during the last hour.
5
-
*[Tonstat.us](https://tonstat.us/) - a real-time Grafana, updated every 5 minutes.
4
+
*[status.toncenter](https://status.toncenter.com/) - Provides various statistics of node activity in the last hour.
5
+
*[Tonstat.us](https://tonstat.us/) - A real-time Grafana dashboard that updates every 5 minutes.
6
6
:::
7
7
8
-
This guide will cover essential steps in acquiring and using private RPC endpoints by GetBlock to access the TON blockchain.
8
+
This guide covers essential steps in acquiring and using private RPC endpoints by GetBlock to access the TON blockchain.
9
9
10
10
:::info
11
-
[GetBlock](https://getblock.io/) is a Web3 infrastructure provider, offers HTTP-based API endpoints for clients to interact with various blockchain networks, including TON.
11
+
[GetBlock](https://getblock.io/) is a Web3 infrastructure provider that offers HTTP-based API endpoints for clients to interact with multiple blockchain networks, including TON.
12
12
:::
13
13
14
14
## How to Access TON Blockchain Endpoints
15
-
To start using GetBlock’s endpoints, users are required to log in to their account, retrieve a TON endpoint URL, and they're good to go. Follow along for more detailed guidance.
15
+
To start using GetBlock’s endpoints, users need to log in to their accounts, and retrieve a TON endpoint URL. Follow these instructions:
16
16
17
17
### 1. Create a GetBlock Account
18
-
Visit the GetBlock [website](https://getblock.io/?utm_source=external&utm_medium=article&utm_campaign=ton_docs) and locate the “Get Started for Free” button on the main page. Sign up for an account with your email address or by connecting a MetaMask wallet.
18
+
Visit the GetBlock [website](https://getblock.io/?utm_source=external&utm_medium=article&utm_campaign=ton_docs) and click on the "Get Started for Free" button. Sign up using your email address or by connecting your MetaMask wallet.
After signing in, you’ll be redirected to the dashboard. Locate the section titled "My Endpoints" and select "TON" under the "Protocols" dropdown menu.
25
-
26
-
Choose the desired network and API type (JSON-RPC or JSON-RPC(v2)).
24
+
After signing in, go to the "My Endpoints" section. Choose TON from the "Protocols" dropdown menu and select the desired network and API type (JSON-RPC or JSON-RPC(v2)).
Click on the “Get” button to generate your TON blockchain endpoint URL.
32
-
33
-
All endpoints within the GetBlock API follow a consistent structure: `https://go.getblock.io/[ACCESS TOKEN]/`.
29
+
Click the “Get” button to generate your TON blockchain endpoint URL. The structure of the endpoint will be: `https://go.getblock.io/[ACCESS TOKEN]/`.
34
30
35
-
These access tokens serve as unique identifiers for each user or application and contain information necessary for routing the request to appropriate endpoints without revealing sensitive details. It essentially replaces the need for separate authorization headers or API keys.
31
+
Access tokens act as unique identifiers for your requests, eliminating the need for separate API keys or authorization headers.
36
32
37
33
Users have the flexibility to generate multiple endpoints, roll tokens if compromised, or delete unused endpoints.
38
34
@@ -42,11 +38,7 @@ Now, you can use these URLs to interact with the TON blockchain, query data, sen
42
38
43
39
### Free Requests and User Limits
44
40
45
-
Please note that every registered GetBlock user receives 40,000 free requests capped at 60 RPS (Requests per Second). The request balance is renewed daily and can be utilized on any shared endpoints across supported blockchains.
46
-
47
-
For enhanced features and capabilities, users have the option to explore paid options, which will be outlined below.
48
-
49
-
GetBlock.io offers two types of plans: Shared Nodes and Dedicated Nodes. Clients can choose the tariff based on their requirements and budget.
41
+
Each registered user receives 40,000 free requests per day, with a cap of 60 requests per second (RPS). This balance is renewed daily and can be used for any supported blockchain.
50
42
51
43
### Shared Nodes
52
44
@@ -62,19 +54,19 @@ As developers scale their applications and require additional resources, they ca
62
54
### Dedicated Nodes
63
55
64
56
- One node is exclusively allocated to a single client;
65
-
No request limits;
57
+
- No request limits;
66
58
- Opens access to archive nodes, a variety of server locations, and custom settings;
67
59
- Guarantees premium-level service and support to clients.
68
60
69
61
This is a next-level solution for developers and decentralized applications (dApps) that require enhanced throughput, higher speed of node connection, and guaranteed resources as they scale.
70
62
71
63
## How to use TON HTTP API by GetBlock
72
64
73
-
In this section, we'll delve into the practical usage of the TON HTTP API provided by GetBlock. We'll explore examples to showcase how to effectively utilize the generated endpoints for your blockchain interactions.
65
+
In this section, we delve into the practical usage of the TON HTTP API provided by GetBlock. We explore the examples to showcase how to effectively utilize the generated endpoints for your blockchain interactions.
74
66
75
67
### Examples of common API calls
76
68
77
-
Let's begin with a simple example using the ‘/getAddressBalance’ method to retrieve the balance for a specific address using the curl command.
69
+
You can use the ‘/getAddressBalance’ method to get the balance for a specific TON address:
78
70
79
71
curl --location --request GET 'https://go.getblock.io/[ACCESS-TOKEN]/getAddressBalance?address=EQDXZ2c5LnA12Eum-DlguTmfYkMOvNeFCh4rBD0tgmwjcFI-' \
80
72
@@ -90,23 +82,21 @@ Some other available methods to query the TON blockchain:
| 1 | GET | getAddressState |returns the current status (uninitialized, active, or frozen) of a specified address on the TON blockchain|
94
-
| 2 | GET | getMasterchainInfo | Fetches information about the state of the masterchain|
95
-
| 3 | GET | getTokenData | Retrieves details about an NFT or Jetton associated with a specified TON account |
96
-
| 4 | GET | packAddress | Converts a TON address from its raw format to a human-readable format|
97
-
| 5 | POST | sendBoc | Sends serialized BOC files along with external messages to the blockchain for execution|
85
+
| 1 | GET | getAddressState |Returns the current state of a specified address (uninitialized, active, or frozen).|
86
+
| 2 | GET | getMasterchainInfo | Fetches the state of the masterchain.|
87
+
| 3 | GET | getTokenData | Retrieves details about an NFT or Jetton associated with the address.|
88
+
| 4 | GET | packAddress | Converts a TON address from raw format to human-readable format.|
89
+
| 5 | POST | sendBoc | Sends serialized BOC files with external messages for blockchain execution.|
98
90
99
-
Please refer to GetBlock's [documentation](https://getblock.io/docs/ton/json-rpc/ton_jsonrpc/) for a comprehensive API reference with examples and a list of additional methods.
91
+
For a comprehensive list of methods and detailed API documentation, please refer to GetBlock's [documentation](https://getblock.io/docs/ton/json-rpc/ton_jsonrpc/).
100
92
101
93
### Deploying smart contracts
102
94
103
-
Developers can utilize the same endpoint URLs to seamlessly deploy contracts onto the TON blockchain using the TON library.
104
-
105
-
The library will initialize a client to connect to the network via the GetBlock HTTP API endpoints.
95
+
Developers can utilize the TON library to deploy and interact with contracts. The library will initialize a client to connect to the network via the GetBlock HTTP API endpoints.
106
96
107
97

108
98
109
-
This tutorial should provide a comprehensive guide for developers looking to utilize GetBlock's API with the TON Blockchain effectively.
99
+
By following this guide, developers can easily access the TON blockchain using GetBlock's infrastructure. Whether you're working on decentralized applications (dApps) or simply querying data, GetBlock simplifies the process by offering ready-to-use HTTP API endpoints with various features.
110
100
111
-
Feel free to learn more from the [website](https://getblock.io/?utm_source=external&utm_medium=article&utm_campaign=ton_docs) or drop a line to GetBlock’s support via live chat, [Telegram](https://t.me/GetBlock_Support_Bot), or a website form.
101
+
Feel free to learn more at the [website](https://getblock.io/?utm_source=external&utm_medium=article&utm_campaign=ton_docs) or drop a line to GetBlock’s support via live chat, [Telegram](https://t.me/GetBlock_Support_Bot), or a website form.
0 commit comments