BesuContext - Besu - LF Decentralized Trust Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window) PreferencesOnly necessaryAccept all LF Decentralized Trust LF Decentralized Trust Spaces Apps Templates Create Besu All content Shortcuts Meetings Meetings  This trigger is hidden How-to articles How-to articles  This trigger is hidden Content Results will update as you type. Code of Conduct Contributing Developing and Conventions Besu CLI Style Guide Coding Conventions Changelog Testing Debugging Besu in IntelliJ Releasing Bug Triage Process Policies Plugin Services BesuContext PermissioningService PrivacyPluginService RpcEndpointService Tools we use Advanced Repositories and other projects Archive (Dev) Changelog Improvement Proposal Logging Building from source Documentation Community Governance Programs & Grants Meetings Design Documents Security Audits Start Here Performance & Stability How-to articles Incident Reports Besu Roadmap & Planning How to Contribute You‘re viewing this with anonymous access, so some content might be blocked. Close Besu / BesuContext More actions BesuContext Antony Denyer Owned by Antony Denyer Oct 11, 2021 public interface BesuContext Allows plugins to access Besu services. Method Summary Modifier and Type Method Description java.util.Optional getService​(java.lang.Class serviceType) Get the requested service, if it is available. Method Details getService  java.util.Optional getService​(java.lang.Class serviceType) Get the requested service, if it is available. There are a number of reasons that a service may not be available: The service may not have started yet. Most services are not available before the BesuPlugin.start() method is called The service is not supported by this version of Besu The service may not be applicable to the current configuration. For example some services may only be available when a proof of authority network is in use Since plugins are automatically loaded, unless the user has specifically requested functionality provided by the plugin, no error should be raised if required services are unavailable. Type Parameters: T - the service type Parameters: serviceType - the class defining the requested service. Returns: an optional containing the instance of the requested service, or empty if the service is unavailable , multiple selections available, Related content More info Collapse Besu Besu Besu More like this Besu - Community Support Besu - Community Support Besu More like this Debugging Besu in IntelliJ Debugging Besu in IntelliJ Besu More like this How to Contribute How to Contribute Besu More like this Suggesting Enhancements Suggesting Enhancements Besu More like this Issues Issues Besu More like this {"serverDuration": 13, "requestCorrelationId": "f7e1bc7369e243ce9b0480e9ab3ed8a8"}