> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://ensforge.com/api/mcp` to find what you need.

# rhinestone

Create a Rhinestone session-execution adapter for the supported ENS HCA.

## Import

```ts
import { rhinestone } from "@ensforge/hca/rhinestone";
```

## Usage

```ts
const execution = rhinestone({ profile, chain, owner, sessionSigner, sdk: { apiKey } });
```

## Parameters

```ts
options: RhinestoneOptions;
```

Required: `profile`, `chain`, `owner`, `sessionSigner`, `sdk`. Optional: `sessionSalt`, `policy`, `crossChain`, `sponsored`. The returned adapter exposes `extensions.sessions.prepare`, `extensions.sessions.enable`, and `crossChain`. See [Getting started](/hca/rhinestone/getting-started) and [Funding](/hca/rhinestone/cross-chain).

Use the default sponsored execution mode. `sponsored: false` is not supported;
see [Compatibility](/hca/compatibility) for the unresolved refund-route limitation.

## Return Type

RhinestoneExecutionAdapter

## Error

Invalid identity, configuration and unsupported authorization remain explicit errors. Provider transport
and simulation failures must be reconciled before repeating a submission.

## Related

* [Guides](/hca/getting-started)
* [Compatibility](/hca/compatibility)
