> 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/infrastructure/running-a-node-validator/non-sgx-node-beta/setting-up-an-sgx-provider-node.md).

# Setting up an SGX Provider Node

### Node Setup

To function as a Provider, an existing SGX node must be enabled to archive its execution data for downstream consumption.

Enable Data Recording: Add the following to \~/.secretd/config/app.toml under the \[wasm] section:

```
[wasm]
store-sgx-data = true
```

Alternatively, you can set the environment variable prior to node startup:

```
export SECRET_STORE_SGX_DATA=true
```

Storage Management (Optional): To manage storage overhead, the Provider utilizes an automated pruning process. Operators can customize the data lifecycle via these parameters:

```
# Define the block retention window (default is ~90 days)
export SECRET_SGX_DATA_RETENTION_BLOCKS=1296000

# Define the execution frequency for the cleanup task
export SECRET_SGX_DATA_PRUNE_INTERVAL=100
```

Start the Node:

```
secretd start
```

The SGX node will now serve recorded traces via its gRPC interface (port 9090). Ensure firewall configurations permit inbound traffic from your Non-SGX infrastructure.

Next step is setting up the secretd-sgx-proxy


---

# 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.scrt.network/secret-network-documentation/infrastructure/running-a-node-validator/non-sgx-node-beta/setting-up-an-sgx-provider-node.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.
