# QNEKT Regtest with react-box

## Connecting react-box to regtest <a href="#connecting-react-box-to-regtest" id="connecting-react-box-to-regtest"></a>

Now that Qnekt is connected to your local regtest instance and you have a balance, we can launch react-box and connect to it via Qnekt/Web3.

In a previous section, we did [`truffle migrate --network regtest`](https://docs.qtum.site/en/part2/truffle.md#truffle-migrate) which generated some contract artifacts.

We need to copy those into the [`client/src`](https://github.com/qtumproject/react-box/tree/master/client/src) folder in [`react-box`](https://github.com/qtumproject/react-box/)

```bash
react-box> cp -a build/contracts client/src/
cd client
npm run start
```

The Dapp should open in your browser

![](https://docs.qtum.site/en/Connecting-react-box-to-regtest/qnekt-react-box-good-to-go.PNG)

Qnekt will prompt you to connect your account to the Dapp

![](https://docs.qtum.site/en/Connecting-react-box-to-regtest/qnekt-react-box-connect.PNG)

After confirming

![](https://docs.qtum.site/en/Connecting-react-box-to-regtest/qnekt-react-box-connect-confirm.PNG)

A transaction will be submitted

![](https://docs.qtum.site/en/Connecting-react-box-to-regtest/qnekt-react-box-tx.PNG)

And after being confirmed, the stored value in the smart contract will be updated from 0 to 5

![](https://docs.qtum.site/en/Connecting-react-box-to-regtest/qnekt-react-box-tx-confirmed.PNG)

Congratulations, now you have deployed a contract via truffle, connected it to Qnekt and signed a transaction.


---

# Agent Instructions: 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.qtum.info/qtum-documentation/qnekt/qnekt-regtest-with-react-box.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.
