> For the complete documentation index, see [llms.txt](https://codex.irrevocable.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codex.irrevocable.dev/sdk-reference/dispatch/join-quest.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
