Interface PoaQueryService
-
- All Known Subinterfaces:
IbftQueryService
public interface PoaQueryService
Provides methods to query the status of a Proof of Authority (PoA) network.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Address
getLocalSignerAddress()
Retrieves the signerAddress
of the local node.Address
getProposerOfBlock(BlockHeader header)
Retrieves theAddress
for the proposer of a block on the canonical chain.java.util.Collection<Address>
getValidatorsForLatestBlock()
Retrieves the validators specified in the latest block from the canonical chain.
-
-
-
Method Detail
-
getValidatorsForLatestBlock
java.util.Collection<Address> getValidatorsForLatestBlock()
Retrieves the validators specified in the latest block from the canonical chain.- Returns:
- Addresses of all validators in the latest canonical block.
-
getProposerOfBlock
Address getProposerOfBlock(BlockHeader header)
Retrieves theAddress
for the proposer of a block on the canonical chain.- Parameters:
header
- TheBlockHeader
for which the proposer will be found.- Returns:
- The identity of the proposer for the given block.
-
getLocalSignerAddress
Address getLocalSignerAddress()
Retrieves the signerAddress
of the local node. This is the address added to theBlockHeader
to identify that a specific node was a validator during block creation.- Returns:
- The signer
Address
of the local node.
-
-