# 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](https://ecp.gitbook.io/how-to-guides-for-coincashew-method-cardano-spos/maintenance-and-daily-operations/update-node-and-cli-to-8.0.0#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](https://2549074837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8PjW7zFPfe4PgCsPtkZx%2Fuploads%2FgVNakrAPFOZQakRJTpsI%2FxSPO_NFT.png?alt=media\&token=7dc5023e-ae60-40c2-89eb-a980f5739cb2) [xSPO Alliance](http://xspo-alliance.org/discord)
