hmy_getBlockSigners

Description

hmy_getBlocksSigners returns list of block signers

API v1

Parameters

  1. 1.
    String - block number in string 0x format

Returns

  • Array of String: one addresses list of validators who signed this block

Sample Curl Request

1
curl -d '{
2
"jsonrpc": "2.0",
3
"method": "hmy_getBlockSigners",
4
"params": ["0x1"],
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": [
5
"one1pdv9lrdwl0rg5vglh4xtyrv3wjk3wsqket7zxy",
6
"one12fuf7x9rgtdgqg7vgq0962c556m3p7afsxgvll",
7
"one1pf75h0t4am90z8uv3y0dgunfqp4lj8wr3t5rsp",
8
"one1spshr72utf6rwxseaz339j09ed8p6f8ke370zj",
9
"one1d2rngmem4x2c6zxsjjz29dlah0jzkr0k2n88wc",
10
"one1a50tun737ulcvwy0yvve0pvu5skq0kjargvhwe",
11
"one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7"
12
]
13
}
Copied!

API v2

Parameters

  1. 1.
    Number - block number

Returns

  • Array of String: one addresses list of validators who signed this block

Sample Curl Request

1
curl -d '{
2
"jsonrpc": "2.0",
3
"method": "hmy_getBlockSigners",
4
"params": [1],
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": [
5
"one1pdv9lrdwl0rg5vglh4xtyrv3wjk3wsqket7zxy",
6
"one12fuf7x9rgtdgqg7vgq0962c556m3p7afsxgvll",
7
"one1pf75h0t4am90z8uv3y0dgunfqp4lj8wr3t5rsp",
8
"one1spshr72utf6rwxseaz339j09ed8p6f8ke370zj",
9
"one1d2rngmem4x2c6zxsjjz29dlah0jzkr0k2n88wc",
10
"one1a50tun737ulcvwy0yvve0pvu5skq0kjargvhwe",
11
"one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7"
12
]
13
}
Copied!
Last modified 1yr ago