Returns the minimum DS difficulty of the previous block. This is represented as an Number
.
```shell
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetPrevDSDifficulty",
"params": [""]
}' -H "Content-Type: application/json" -X POST "https://zil.nownodes.io/"
```
```js
const prevDSDifficulty = await zilliqa.blockchain.getPrevDSDifficulty();
console.log(prevDSDifficulty.result);
```
```java
public class App {
public static void main(String[] args) throws IOException {
HttpProvider client = new HttpProvider("https://zil.nownodes.io/");
Rep<Integer> prevDSDifficulty = client.getPrevDSDifficulty();
System.out.println(new Gson().toJson(prevDSDifficulty));
}
}
```
```python
from pyzil.zilliqa import chain
chain.set_active_chain(chain.MainNet)
print(chain.active_chain.api.GetPrevDSDifficulty())
```
```go
func GetPrevDSDifficulty() {
provider := NewProvider("https://zil.nownodes.io/")
response := provider.GetPrevDSDifficulty()
result, _ := json.Marshal(response)
fmt.Println(string(result))
}
```
{
"id": "1",
"jsonrpc": "2.0",
"result": 149
}