> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usexfg.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Swaps API

> swapXFG / SwapDaemon RPC patterns for atomic swaps.

## Fee reminder

Completed XFG-side swaps: **1%**, split **69% CD / 11% Bonus Vault / 20% Treasury**.

## Common endpoints (shapes)

Exact paths depend on whether you hit wallet RPC, node, or SwapDaemon. Typical operations:

| Operation             | Purpose                        |
| --------------------- | ------------------------------ |
| `listswaps`           | Active / recent swaps          |
| `getswapstatus`       | One swap by id                 |
| `refund_swap`         | Refund after timelock          |
| initiate / offer APIs | Start a swap (daemon-specific) |

Example status:

```bash theme={null}
curl -X POST http://127.0.0.1:28080/getswapstatus \
  -H 'Content-Type: application/json' \
  -d '{"swap_id": "YOUR_SWAP_ID"}'
```

See [How swaps work](/features/atomic-swaps/how-swaps-work) for state machine context.
