hmy_isBlockSigner

Description

hmy_isBlockSigner returns true is validator signed a particular block or not

API v1

Parameters

  1. 1.
    String - block number in string 0x format
  2. 2.
    String - validator one address ("one1...")

Returns

  • Bool - true if validator signed block, false otherwise

Sample Curl Request

1
curl -d '{
2
"jsonrpc": "2.0",
3
"method": "hmy_isBlockSigner",
4
"params": ["0x1", "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7"],
5
"id": 1
6
}' -H "Content-Type: application/json" -X POST "http://localhost:9500"
Copied!
Sample Curl Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": true
5
}
Copied!

API v2

Parameters

  1. 1.
    Number - block number
  2. 2.
    String - validator one address ("one1...")

Returns

  • Bool - true if validator signed block, false otherwise

Sample Curl Request

1
curl -d '{
2
"jsonrpc": "2.0",
3
"method": "hmyv2_isBlockSigner",
4
"params": [1, "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7"],
5
"id": 1
6
}' -H "Content-Type: application/json" -X POST "http://localhost:9500"
Copied!
Sample Curl Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": true
5
}
Copied!