getConfigAll - Ton
getConfigAll. Retrieves the complete configuration settings, including parameters related to network behavior and consensus rules.
getConfigAll - ton [Value: 100CU]
Retrieves the complete configuration settings, including parameters related to network behavior and consensus rules.
Use cases
- Get all configuration settings for the TON network
- Access parameters for performance tuning
- Analyze current configuration for audits
Constraints
- Requires a synced node for accurate data
- Depends on network access
- Only shows current configuration settings
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request GET \
--url 'https://ton.drpc.org/rest/getConfigAll?seqno=41089440' \
--header 'accept: application/json'
Response
200
{
"status": "success",
"data": {
"config": {
"workchain": 0,
"shard": -9223372036854775808,
"seqno": 41089440,
"current_time": 1693527600,
"global_state": {
"root_hash": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
"state_hash": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
"shard_states": [
{
"shard_id": -9223372036854775808,
"last_seqno": 41089440,
"root_hash": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef"
},
{
"shard_id": -9223372036854775807,
"last_seqno": 41089439,
"root_hash": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
]
}
}
}
Request params
integer
seqnointeger
The sequence number of the block.
Response
200
Response params
object
statusstring
Indicates the status of the request.
dataobject
Contains the main data object.
object
configobject
Configuration details of the specified workchain.
object
workchaininteger
The identifier of the workchain.
shardinteger
The identifier of the shard.
seqnointeger
The sequence number of the block.
current_timeinteger
The current time in Unix time format.
global_stateobject
The global state information.
object
root_hashstring
The root hash of the global state.
state_hashstring
The state hash of the global state.
shard_statesarray
An array of shard state objects.
object
shard_idinteger
The identifier of the shard.
last_seqnointeger
The last sequence number for the shard.
root_hashstring
The root hash for the shard state.