> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# createSession

> Create a smart session, resolving the chain's wrapped-native token from the orchestrator's chain catalog (GET /chains) so native-token wrapping is permitted automatically. Project-scoped — needs the API key but no account. For a fully offline build, use the standalone toSession and pass wrappedNativeToken yourself.

Method on a [`RhinestoneSDK`](/sdk-reference/rhinestone-sdk/rhinestone-sdk) instance.

## Usage

```ts theme={null}
const session = await sdk.createSession(definition)
```

## Parameters

<ParamField path="definition" type="SessionDefinition" required>
  The session definition
</ParamField>

## Returns

<ResponseField name="session" type="Session">
  The resolved session
</ResponseField>
