# Update cardano-submit-api

{% hint style="info" %}
Credits to <img src="https://earncoinpool.com/images/coin_v3.png" alt="" data-size="line"> [Earn Coin Pool](https://earncoinpool.com/) for documenting the procedure.
{% endhint %}

The procedure described here is done immediately following updating your node. This is because the cardano-submit-api files are part of the git files when you download a new Cardano node version.\
\
This can be done at the same time but it's assumed here that you run submit-api on only one relay so you might want to come back after update and perform these steps to just one relay.

{% hint style="info" %}
If you need to check if cardano-submit-api is installed run:
{% endhint %}

```
which cardano-submit-api
```

## Step 1 - Build Updated Version of cardano-submit-api

Assuming you use folder structure described [here](/how-to-guides-for-coincashew-method-cardano-spos/maintenance-and-daily-operations/how-to-guides-for-spos-using-coincashew-method/update-node-and-cli-to-8.0.0.md#step-12-clean-up). Your new node git files should be located here: `$HOME/git/cardano-node` if they are not there adjust the paths below.

Run the following commands to build updated version of cardano-submit-api

```
cd $HOME/git/cardano-node
cabal update
cabal build cardano-submit-api
```

## Step 2 - Stop submit-api service

Our service name was `tx-api.service` if you use different name adjust below.

```
sudo systemctl stop tx-api.service
```

## Step 3 - Move cardano-submit-api

We store our cardano-submit-api in the `/usr/local/bin/` this is the path we specify in our start up scripts. if your path is different, please adjust paths.

{% code overflow="wrap" %}

```
sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name "cardano-submit-api") /usr/local/bin/cardano-submit-api
```

{% endcode %}

## Step 4 - Restart Service

Again our service name was `tx-api.service` if you use different name adjust below.

```
sudo systemctl start tx-api.service
```

## Step 5 - Check Status

```
sudo systemctl status tx-api.service
```

## Congratulations you did it!

## Contributors&#x20;

Thanks to the following pools for helping to put together these guides. Please consider delegating to their pools to support them.  Are you a pool? Consider buying them a coffee

&#x20;![](https://img.cexplorer.io/9/0/1/d/4/pool1zn4wnk52kmfjy9mw4z85p6wn9kzrn94l9h5gys8r2k2w57mdnhh.png) [Envy Stake Pool - Ticker ENVY](https://cexplorer.io/pool/pool1zn4wnk52kmfjy9mw4z85p6wn9kzrn94l9h5gys8r2k2w57mdnhh)

![](https://img.cexplorer.io/7/e/1/9/f/pool16cdtqyk0fvxzfkhjg3esjcuty4tnlpds5lj0lkmqmwdjyzaj7p8.png)  [Earn Coin Pool - Ticker: ECP](https://cexplorer.io/pool/pool16cdtqyk0fvxzfkhjg3esjcuty4tnlpds5lj0lkmqmwdjyzaj7p8)

![xSPO Alliance Logo](/files/6U364TnLAtmyWJIEdO8v) [xSPO Alliance](http://xspo-alliance.org/discord)


---

# 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://ecp.gitbook.io/how-to-guides-for-coincashew-method-cardano-spos/maintenance-and-daily-operations/how-to-guides-for-spos-using-coincashew-method/update-cardano-submit-api.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.
