genesis_chunked - Cosmos
genesis_chunked. Explore how to retrieve the genesis file in chunks
genesis_chunked - Cosmos [Value: 20CU]
Retrieves the genesis file in chunks
Use cases
- Retrieve a specific chunk of the genesis file
- Analyze the genesis file in segments
- Efficiently download large genesis data in chunks
Constraints
- Requires multiple requests for large genesis files
- Reconstructing the full genesis may be complex
- Data integrity must be verified for each chunk
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --location 'https://cosmos-hub.drpc.org' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "genesis_chunked",
"params": [
0
],
"id": 1
}'
Response
200
{
"jsonrpc": "2.0",
"result": {
"chunk": {
"index": "0",
"data": "BASE64_ENCODED_DATA",
"proof": {
"total": "1",
"index": "0",
"leaf_hash": "HASH",
"aunts": []
}
}
},
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
integer
chunkinteger
The chunk number to be retrieved from the genesis file
Response
200
Contains the requested chunk of the genesis fileResponse params
object
idinteger
jsonrpcstring
resultobject
Contains the requested chunk of the genesis file, including its data and size.
object
datastring
The base64-encoded data of the requested chunk from the genesis file.
chunk_sizeinteger
The size of the retrieved chunk in bytes.
total_chunksinteger
The total number of chunks that make up the entire genesis file.