# Resume arb after a reclaim

`POST /wallet/arb/resume` · Lithos client API · Wallet · requires the `api_key` header

Source: https://lithosprotocol.org/docs/api/resume-wallet-arb-stake

Turn arbitrage back on after a reclaim paused it, without restarting the client. With `batching.arb.autoReserve` on, the client sends a new stake to the arb address once the wallet holds twice `batching.arb.stakeNanoErg`; otherwise arbitrage runs on ERG sent there.

Refused while the reclaim is still in the mempool, since a block of this miner's built on the stake would undo it. Calling it while arbitrage runs changes nothing. Answers with the stake as `GET /wallet/arb` reports it.

## Responses

### 200: Arbitrage runs

`WalletArbStake`

- `address` (string, required): The arb address. ERG sent here is used as the arb stake.
- `enabled` (boolean, required): Arbitrage is on and can reach this miner's blocks: `batching.arb.enabled`, block transactions and the `arb` candidate source are all on. 
- `paused` (boolean, required): A reclaim stopped arbitrage. It runs again after `POST /wallet/arb/resume` or a restart. 
- `targetNanoErgs` (string, required): `batching.arb.stakeNanoErg`, the size `batching.arb.autoReserve` sends and the most one cycle puts in. `0` while `enabled` is false. Decimal string. 
- `stakeNanoErgs` (string, required): ERG of the box cycles start from: before the first candidate build, the largest box at the address holding at least 0.1 ERG and no tokens. `0` when there is none, while `enabled` is false and while `paused`. Decimal string. 
- `boxes` (integer · int32, required): Confirmed boxes at the address, at most 1000 counted
- `nanoErgs` (string, required): ERG in those boxes, which a reclaim returns less its fee. Decimal string.

### 403: Missing or wrong api_key

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### 422: Arbitrage is off in configuration, or a pending transaction still spends a box at the arb address. `detail` says which. 

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### 503: The arb address could not be read, or a reclaim is still running. Nothing changed; retry. 

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### default: Error

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

## Example request

```bash
curl -X POST "http://localhost:9000/wallet/arb/resume" \
  -H "api_key: $LITHOS_API_KEY"
```

## Example response

```json
{
  "address": "string",
  "enabled": true,
  "paused": true,
  "targetNanoErgs": "10000000000",
  "stakeNanoErgs": "10000000000",
  "boxes": 1,
  "nanoErgs": "10000000000"
}
```
