Skip to main content
Version: Next

clique namespace

clique_discard

This method drops a currently running proposal. The signer will not cast further votes (either for or against) the address.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_discard",
"params": [signer]
}'

clique_getBlockSigner

Retrieves the signer of the block with the given hash. Returns error of a block with the given hash does not exist.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getBlockSigner",
"params": [hash]
}'

clique_getSigners

Retrieves the list of authorized signers.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSigners",
"params": []
}'

clique_getSignersAnnotated

Retrieves the list of authorized signers but with signer names instead of addresses

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSignersAnnotated",
"params": []
}'

clique_getSignersAtHash

Retrieves the list of authorized signers at the specified block by hash.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSignersAtHash",
"params": [hash]
}'

clique_getSignersAtHashAnnotated

Retrieves the list of authorized signers at the specified block by hash but with signer names instead of addresses

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSignersAtHashAnnotated",
"params": [hash]
}'

clique_getSignersAtNumber

Retrieves the list of authorized signers at the specified block by block number.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSignersAtNumber",
"params": [number]
}'

clique_getSnapshot

Retrieves a snapshot of all clique state at a given block.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSnapshot",
"params": []
}'

clique_getSnapshotAtHash

Retrieves the state snapshot at a given block.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_getSnapshotAtHash",
"params": [hash]
}'

clique_produceBlock

Forces Clique block producer to produce a new block

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_produceBlock",
"params": [parentHash]
}'

clique_propose

Adds a new authorization proposal that the signer will attempt to push through. If the vote parameter is true, the local signer votes for the given address to be included in the set of authorized signers. With vote set to false, the signer is against the address.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "clique_propose",
"params": [signer, vote]
}'