DevelopersContextsTangle Client Context

Tangle Client Context

The TangleEvmClientContext trait provides a standardized interface for interacting with Tangle’s on-chain protocol from your Blueprint via an Alloy-powered EVM client.

Overview

The context exposes a typed TangleEvmClient that supports:

  • Transaction submission (service requests, results, registrations)
  • State queries (blueprints, services, operator metadata)
  • Event/log consumption (typically via producers in the runner)

Using the Context

1. Define Your Context

Derive the context trait on a struct that includes a BlueprintEnvironment field:

2. Use the Tangle Client

Call tangle_evm_client() to get a configured client instance: