GetNumDSBlocks


Returns the current number of validated Directory Service blocks in the network. This is represented as a String.

Example Request

curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetNumDSBlocks",
"params": [""]
}' -H "Content-Type: application/json" -X POST "https://api.zilliqa.com/"

Example Response

{
"id": "1",
"jsonrpc": "2.0",
"result": "5899"
}

HTTP Request

Chain(s)URL(s)
Zilliqa mainnethttps://api.zilliqa.com/
Developer testnethttps://dev-api.zilliqa.com/
Local testnethttp://localhost:4201/
Isolated serverhttp://localhost:5555/

Arguments

ParameterTypeRequiredDescription
idstringRequired"1"
jsonrpcstringRequired"2.0"
methodstringRequired"GetNumDSBlocks"
paramsstringRequiredEmpty string ""