BuildContextsTangle Client Context

Tangle Client Context

SDK source (GitHub): https://github.com/tangle-network/blueprint/tree/main/crates/contexts

The TangleClientContext trait gives a Blueprint a typed TangleClient for submitting transactions to Tangle and querying service/operator state. It is configured from the blueprint environment.

What the client can do

The client lets a Blueprint:

  • 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: