> For the complete documentation index, see [llms.txt](https://docs.scrt.network/secret-network-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/supported-networks/secret-gateway/secretpath-mainnet-secret-4-contracts.md).

# SecretPath mainnet (secret-4) contracts

For the Secret Network mainnet (secret-4) side, the gateway contract information are:

* Gateway contract code id: `1533`
* Gateway contract address: `secret1qzk574v8lckjmqdg3r3qf3337pk45m7qd8x02a`
* Gateway contract code hash:  `012dd8efab9526dec294b6898c812ef6f6ad853e32172788f54ef3c305c1ecc5`
* Gateway encryption key for ChaChaPoly1305: `AqDWMqzQ0vXaAvw4XqMKjeq01WOdGoIaOlUmJa0PF1nQ`
* Public key (uncompressed):&#x20;

&#x20;      As Hex:  &#x20;

`0x04a0d632acd0d2f5da02fc385ea30a8deab4d5639d1a821a3a552625ad0f1759d0d2e80ca3adb236d90caf1b12e0ddf3a351c5729b5e00505472dca6fed5c31e2a`

&#x20;     As Base64:

`BKDWMqzQ0vXaAvw4XqMKjeq01WOdGoIaOlUmJa0PF1nQ0ugMo62yNtkMrxsS4N3zo1HFcpteAFBUctym/tXDHio=`

* Derived Ethereum Address from Public Key: `0x88e43F4016f8282Ea6235aC069D02BA1cE5417aB`

The RNG contract that provides the Randomness is:

* RNG contract code id: `1925`
* RNG contract address: `secret10jyexwp4zrv50eysn3l7n4n2spf0u380lcq5nz`
* RNG contract code hash: `0b9395a7550b49d2b8ed73497fd2ebaf896c48950c4186e491ded6d22e58b8c3`


---

# 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:

```
GET https://docs.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/supported-networks/secret-gateway/secretpath-mainnet-secret-4-contracts.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.
