GetDsBlock


Returns the details of a specified Directory Service block.

Example Request

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

Example Response

{
"id": "1",
"jsonrpc": "2.0",
"result": {
"header": {
"BlockNum": "1",
"Difficulty": 3,
"DifficultyDS": 5,
"GasPrice": "100",
"LeaderPubKey": "0x020035B739426374C5327A1224B986005297102E01C29656B8B086BF4B352C6CA9",
"PoWWinners": [],
"PrevHash": "0800bfda2b715fe7e401f7cf73182f072f8459318cb4bb90d195f681c5bbebdd",
"Timestamp": "1548928944839738"
},
"signature": "1515B838C310485ADE001822470E9CF9D0068E8528516AB71D8A964B642AF59A874A5345CC8239254B951EE53CB509A9A3D5F5FF63380D5F70D9A32A060DB0CD"
}
}

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"GetDsBlock"
paramsstringRequiredSpecifed DS block number to return. Example: "40"