# Arb stake

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

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

The arb address and the confirmed boxes at it. Arbitrage in this miner's own blocks starts from the largest box there holding at least 0.1 ERG and no tokens, and returns it to the same address in the same block.

The address is this wallet's first key under a script of its own. Only that key spends it, but the node wallet does not list boxes there, so this ERG is not in `/wallet/balances`. ERG sent to the address is used as the stake.

## Responses

### 200: The arb address and what it holds

`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 resumes when the client restarts.
- `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. `0` until a candidate build has taken one up, and after a reclaim. 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

### 503: The arb address could not be read. It is read from the node's extra index. 

`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 GET "http://localhost:9000/wallet/arb" \
  -H "api_key: $LITHOS_API_KEY"
```

## Example response

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