> For the complete documentation index, see [llms.txt](https://docs.zenprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zenprotocol.com/apps/wallet/wallet-structure/contracts/extend-contract.md).

# Extend a Contract

### Step By Step Guide

**Step 1:** Click on the ‘+’ icon

![](https://lh3.googleusercontent.com/jo6PRa5Iv6alrsiHDbS9S2Azwmvsi5R38sZIxqyZdidTHR95OAnnog1CGCInr-PZjTz-9QY4paLHwTv4fJTq7Mwg-XZaX14tzsSTIHRkCZDzxpPHiBmrPkjXfhO3CT1-5cTp4BGJ)

**Step 2:** In the dialog box, insert the number of blocks you wish to extend the contract for and click ‘Continue’.

![](https://lh5.googleusercontent.com/1G4uJFi6ElNLvGgZBO7LWl7RwF-GuvfQzMGavm9z8356Nnm-_jlnJ0SbG5w-2IG21Ih6UGvhhsY5IUDwjrCIw6NyaW4Fy3W6BGdygX9v9BH8PlWhhFLvl3AaDaXHcaPhu9-P0Jzd)

**Step 3:** Enter your password to sign the transaction and click ‘Continue’

Optional: In case a passphrase was use when wallet was connected, the passphrase will be required for this step

<figure><img src="/files/L9th8uCFdrBaY8ovPY5u" alt=""><figcaption></figcaption></figure>

**Step 4:** Confirm your transaction for extending the contract and click ‘Publish’

![](https://lh3.googleusercontent.com/MvnbAYEMptuCWioIDAs5aupFa54KGHvpo9oLsCfgDrMnJBwrmuh3kRATohDH7lObd90Dv0AUXH2USUhF9DfeztzlEShMuhs0an23YcDZoZHqyO7lDjx4ZCnFabr5H1Wbb2iQXxZ9)

**Step 5:** After publishing your transaction a success message will appear.

**Step 6:**  View your transaction on the ‘Transaction History’ page, you might first see the transaction on pending status, till it will get its first confirmation.\
\ <br>


---

# 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://docs.zenprotocol.com/apps/wallet/wallet-structure/contracts/extend-contract.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.
