Interface PoaQueryService
- All Superinterfaces:
BesuService
- All Known Subinterfaces:
BftQueryService
Provides methods to query the status of a Proof of Authority (PoA) network.
-
Method Summary
Modifier and TypeMethodDescriptionorg.hyperledger.besu.datatypes.AddressRetrieves the signerAddressof the local node.org.hyperledger.besu.datatypes.AddressgetProposerOfBlock(BlockHeader header) Retrieves theAddressfor the proposer of a block on the canonical chain.Collection<org.hyperledger.besu.datatypes.Address> Retrieves the validators specified in the latest block from the canonical chain.
-
Method Details
-
getValidatorsForLatestBlock
Collection<org.hyperledger.besu.datatypes.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
Retrieves theAddressfor the proposer of a block on the canonical chain.- Parameters:
header- TheBlockHeaderfor which the proposer will be found.- Returns:
- The identity of the proposer for the given block.
-
getLocalSignerAddress
org.hyperledger.besu.datatypes.Address getLocalSignerAddress()Retrieves the signerAddressof the local node. This is the address added to theBlockHeaderto identify that a specific node was a validator during block creation.- Returns:
- The signer
Addressof the local node.
-