The Attestation module is responsible for Valset (Validator set) and vote management.
To use Attestation methods, initialise a ChainGrpcAttestationApi object to with a gRPC endpoint. An endpoint can be retrieved by using networkEndpoints.
const endpoint = getEndpointsForNetwork(Network.Devnet).grpcEndpoint;const client = new ChainGrpcAttestationApi(endpoint.grpcEndpoint);const response = await client.fetchLatestValsetNonce();
list of all orchestrators.
Fetches all valsets
all valsets.
last event nonce for a validator.
chain ID.
validator address.
latest valset.
Fetch latest valset nonce
latest valset nonce.
valset.
nonce of valset.
Generated using TypeDoc
The Attestation module is responsible for Valset (Validator set) and vote management.
Example
To use Attestation methods, initialise a ChainGrpcAttestationApi object to with a gRPC endpoint. An endpoint can be retrieved by using networkEndpoints.