# Join Quest

Players join a Quest by "Acting On" your Quest Publication on Lens protocol through the Kinora Open Action Contract. This action ensures their interaction is recorded both within the Kinora Contract Suite, where each player maintains a unique profile linked to their Lens profile ID, and additionally within Lens networks and communities.

{% code overflow="wrap" fullWidth="true" %}

```typescript
const lensprovider = new ethers.providers.JsonRpcProvider(
    "https://lensprovider.com",
    232,
  );

const {txHash, error, errorMessage } = await newDispatch.playerJoinQuest(
    "8776305547672229303710652256128036480640562614756544519403188376059",
    new ethers.Wallet(process.env.PLAYER_PRIVATE_KEY, lensprovider));
```

{% endcode %}

**Player Join Quest Props:**

{% code overflow="wrap" fullWidth="true" %}

```typescript
/* Enter the Lens postId of the invoked Quest. */
postId: string;

/* Wallet instance for the Player on Polygon Network. */
wallet: ethers.Wallet;
```

{% endcode %}

**Result Object:**

<pre class="language-typescript" data-overflow="wrap" data-full-width="true"><code class="lang-typescript"><strong>/* The txHash for acting on the Publication and joining the Quest. */
</strong>txHash?: `0x${string}`;

/* Boolean to indicate whether an error was encountered during joining. */
error: boolean;

/* Message of the encountered error. */
errorMessage?: string;
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codex.irrevocable.dev/sdk-reference/dispatch/join-quest.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
