Tangle Client Context
SDK source (GitHub): https://github.com/tangle-network/blueprint/tree/main/crates/contexts
The TangleClientContext trait provides a standardized interface for interacting with the Tangle protocol from a
Blueprint. It exposes a typed TangleClient configured from the blueprint environment.
Context Summary
The TangleClientContext trait provides access to a client that enables:
- Transaction submission to core protocol contracts
- Service and operator state queries
- Job submission and result reporting
- Access to operator identity and keystore-backed signing
Using the Context
1. Define Your Context
First, define your context struct that implements the TangleClientContext trait:
2. Access Tangle Client Functionality
You can then use this context to access the client and interact with the Tangle protocol: