# Run An Node

### Run a local testnet from `AiTrader-core`[​](https://aptos.dev/guides/local-testnet-dev-flow#run-a-local-testnet-from-aptos-core) <a href="#run-a-local-testnet-from-aptos-core" id="run-a-local-testnet-from-aptos-core"></a>

Pull and go into AI Trader`-core`:

```
git clone git@github.com:aitrade-labs/aitrade-core.git ~/aitrader-core && cd ~/aitrader-core
```

Run a local testnet:

```
cargo run -p aitrader -- node run-local-testnet --with-faucet --faucet-port 8081 --force-restart --assume-yes
```

You may add the `--release` flag after `cargo run` if you want to build a release version of the CLI for running the local testnet.

You are now running a local [testnet](https://ais-organization-2.gitbook.io/ai-trader/test-net) built from aitrader`-core` main.

{&#x20;

"name": <mark style="color:red;">"project"</mark>,&#x20;

"version": <mark style="color:red;">"1.0.0"</mark>,&#x20;

"main": <mark style="color:red;">"index.js"</mark>,

&#x20;"license": <mark style="color:red;">"AIT"</mark>,&#x20;

"dependencies": {

&#x20;"aitrade": <mark style="color:red;">"../a/core/ecosystem/typescript/sdk/"</mark>&#x20;

}&#x20;

}

| Parameter                                    | Value                                                                                    |
| -------------------------------------------- | ---------------------------------------------------------------------------------------- |
| DATA\_TRANSPORT\_LAYER\_\_NODE\_ENV          | production                                                                               |
| DATA\_TRANSPORT\_LAYER\_\_BSC\_NETWORK\_NAME | Testnet                                                                                  |
| DATA\_TRANSPORT\_LAYER\_\_ADDRESS\_MANAGER   | 0x4238E5Ccc619dCC8c00ADE4cfc5d3D9020b24898                                               |
| DATA\_TRANSPORT\_LAYER\_\_SERVER\_HOSTNAME   | localhost                                                                                |
| DATA\_TRANSPORT\_LAYER\_\_SERVER\_PORT       | 8989                                                                                     |
| DATA\_TRANSPORT\_LAYER\_\_SYNC\_\_F          | false                                                                                    |
| DATA\_TRANSPORT\_LAYER\_\_L1\_RPC\_ENDPOINT  | Get an endpoint from a service provider (opens new window)unless you run a node yourself |
| DATA\_TRANSPORT\_LAYER\_\_SYNC\_\_T          | true                                                                                     |


---

# 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://ais-organization-2.gitbook.io/ai-trader/docs/run-an-node.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.
