GetPrevDifficulty


Returns the minimum shard difficulty of the previous block. This is represented as an Number.

Example Request

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

Example Response

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

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"GetPrevDifficulty"
paramsstringRequiredEmpty string ""