> For the complete documentation index, see [llms.txt](https://legacy-docs.aragon.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.aragon.org/developers/tools/aragonos/smart-contract-references/kernel/kernelproxy.md).

# KernelProxy

## contract KernelProxy

is [IKernelEvents,](/developers/tools/aragonos/smart-contract-references/kernel/ikernelevents.md) [KernelStorage,](/developers/tools/aragonos/smart-contract-references/kernel/kernelstorage.md) [KernelAppIds](/developers/tools/aragonos/smart-contract-references/kernel/kernelappids.md), [KernelNamespaceConstants](/developers/tools/aragonos/smart-contract-references/kernel/kernelnamespaceconstants.md), [IsContract](/developers/tools/aragonos/smart-contract-references/common/iscontract.md), [DepositableDelegateProxy](/developers/tools/aragonos/smart-contract-references/common/depositabledelegateproxy.md)

Source: [contracts/kernel/KernelProxy.sol](https://github.com/aragon/aragonOS/blob/v4.4.0/contracts/kernel/KernelProxy.sol)

## Index

* [fallback](#fallback)
* [implementation](#implementation)
* [proxyType](#proxytype)

## Reference

### Functions

#### **fallback** <a href="#fallback" id="fallback"></a>

`function (IKernel _kernelImpl) public`

***

KernelProxy is a proxy contract to a kernel implementation. The implementation can update the reference, which effectively upgrades the contract.

Parameters:

* `_kernelImpl` - Address of the contract used as implementation for kernel

#### **implementation** <a href="#implementation" id="implementation"></a>

` function`` `` `**`implementation`**`() public view returns (address)`

***

ERC897, the address the proxy would delegate calls to.

Returns:

* address

#### **proxyType** <a href="#proxytype" id="proxytype"></a>

` function`` `` `**`proxyType`**`() public pure returns (uint256)`

***

ERC897, whether it is a forwarding (1) or an upgradeable (2) proxy.

Returns:

* uint256


---

# 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://legacy-docs.aragon.org/developers/tools/aragonos/smart-contract-references/kernel/kernelproxy.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.
