Skip to content

Latest commit

 

History

History
217 lines (153 loc) · 3.37 KB

File metadata and controls

217 lines (153 loc) · 3.37 KB

Clique

clique_getSnapshot

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

{% tabs %} {% tab title="Request" %}

Parameters

None {% endtab %}

{% tab title="Response" %}

Return type

Snapshot object {% endtab %}

{% tab title="Object definitions" %}

Objects definition

Snapshot

Fields name Type
Number Quantity
Hash Hash
Signers Array
SignerLimit Quantity
{% endtab %}
{% endtabs %}

clique_getSnapshotAtHash

Retrieves the state snapshot at a given block.

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
hash Hash
{% endtab %}

{% tab title="Response" %}

Return type

Snapshot object {% endtab %}

{% tab title="Object definitions" %}

Objects definition

Snapshot

Fields name Type
Number Quantity
Hash Hash
Signers Array
SignerLimit Quantity
{% endtab %}
{% endtabs %}

clique_getSigners

Retrieves the list of authorized signers.

{% tabs %} {% tab title="Request" %}

Parameters

None {% endtab %}

{% tab title="Response" %}

Return type

Address {% endtab %} {% endtabs %}

clique_getSignersAtHash

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

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
hash Hash
{% endtab %}

{% tab title="Response" %}

Return type

Address {% endtab %} {% endtabs %}

clique_getSignersAtNumber

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

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
number Quantity
{% endtab %}

{% tab title="Response" %}

Return type

Address {% endtab %} {% endtabs %}

clique_getSignersAnnotated

{% tabs %} {% tab title="Request" %}

Parameters

None {% endtab %}

{% tab title="Response" %}

Return type

String {% endtab %} {% endtabs %}

clique_getSignersAtHashAnnotated

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
hash Hash
{% endtab %}

{% tab title="Response" %}

Return type

String {% endtab %} {% endtabs %}

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.

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
signer Address
vote Boolean
{% endtab %}

{% tab title="Response" %}

Return type

Boolean {% endtab %} {% endtabs %}

clique_discard

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

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
signer Address
{% endtab %}

{% tab title="Response" %}

Return type

Boolean {% endtab %} {% endtabs %}

clique_produceBlock

{% tabs %} {% tab title="Request" %}

Parameters

Parameter name Type
parentHash Hash
{% endtab %}

{% tab title="Response" %}

Return type

Boolean {% endtab %} {% endtabs %}