# Run SwipeChain

Ensure you have a recent version of go (ie `1.15`) and enabled go modules And have `GOBIN` in your `PATH`

```
export GOBIN=$GOPATH/bin
```

#### Automated Install Locally

Install via this `make` command.

```bash
make install
```

Once you've installed `swipecli` and `swiped`, check that they are there {GOBIN} folder swipecli and swiped generated.

```bash
swipecli help
swiped help
```

#### Start Standalone Full Stack

For development and running a full chain locally (your own separate network), use the following `make` command.

```bash
make -C build/docker reset-mocknet-standalone
```

#### Format code

```bash
make format
```

#### Build all

```bash
make all
```

#### Test

Run tests

```bash
make test
# test with NATIVE SXP
NATIVE=true make test
```

To run test live when you change a file, use...

```
go get -u github.com/mitranim/gow
make test-watch
```


---

# 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.swipe.org/swipechain/run-swipechain.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.
