> For the complete documentation index, see [llms.txt](https://docs.libertyswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.libertyswap.finance/zkx-wallet/user-manual/self-broadcasting-setup-for-zkx-wallet-users.md).

# Self-Broadcasting Setup for ZKX Wallet Users

It is provided for general educational and informational purposes only and does not constitute legal, financial, or compliance advice.

### What is Self-Broadcasting?

When you shield, unshield, or send privately with a Railgun-powered wallet like ZKX Wallet, the resulting transaction has to be submitted on-chain by someone. Normally, that job can be handed to a **Broadcaster** (Railgun's relayer network) — see Railgun Private Sends: Privacy and Fee Structure for how relayer premiums factor into private-send fees.

**Self-broadcasting** means you skip the Broadcaster and submit the transaction yourself, using gas from your own wallet. This removes your dependence on a third party to get the transaction included.

Self-broadcasting only changes who submits the transaction. Shield and unshield transactions, and the public addresses involved, remain visible on-chain.

### Why You Need Two Separate Wallets

If the same `0x` address funds a shield **and** later receives the unshielded funds, an observer only has to watch that one address to connect both ends — the privacy Railgun provides in between is undermined by the addresses on either side.

**Rule: the wallet that funds the shield ≠ the wallet that receives the funds later.**

Splitting these roles across two independent `0x`/`0zk` pairs, each capable of paying its own gas, is the baseline setup for self-broadcasting with ZKX Wallet.

### The Setup

#### Wallet 1 — Shielding Wallet (`0x1` + `0zk1`)

* Keep enough native gas token on `0x1` to self-broadcast the shield transaction.
* Keep the funds you intend to shield (for example, on PulseChain) on `0x1`.
* Shield those funds from `0x1` → `0zk1`.

#### Wallet 2 — Receiving Wallet (`0x2` + `0zk2`)

* Keep enough native gas token on `0x2` to self-broadcast.
* Use `0x2` as the separate, clean public wallet you receive your funds into later — not an address that has ever been linked to `0x1` or posted publicly.

### Privacy Flow

The flow has three steps. The first and last are public transactions; the middle step is a private transfer whose details are encrypted:

| Hop             | Action               | Notes                                                                                                  |
| --------------- | -------------------- | ------------------------------------------------------------------------------------------------------ |
| `0x1` → `0zk1`  | **Shield**           | Public transaction, self-broadcast using `0x1`'s own gas                                               |
| `0zk1` → `0zk2` | **Private transfer** | Submitted on-chain with sender, recipient and amount encrypted; gas is paid by a broadcaster or by you |
| `0zk2` → `0x2`  | **Unshield**         | Public transaction, self-broadcast using `0x2`'s own gas                                               |

**The important part is separating the two wallet pairs.** Don't reuse `0x1` when unshielding if your goal is to avoid creating an obvious public link back to the original wallet.

Privacy here isn't just about which addresses you use — it depends on how you use the whole system. Self-broadcasting each public hop, keeping the middle hop fully private, and never letting `0x1` and `0x2` cross paths are all part of the same setup, not separate options.

### Step-by-Step in ZKX Wallet

1. **Create two independent accounts.** In ZKX Wallet, go to **Settings → Accounts → Add an account** and create Wallet 1 and Wallet 2 using **separate recovery phrases** — not two sub-accounts under the same seed. If both wallets are derived from one recovery phrase, compromising that single phrase exposes both, defeating the separation this setup is meant to provide.
2. **Fund both public addresses with gas.** Send enough native gas token (for example, PLS on PulseChain) to `0x1` and `0x2` so each can independently cover a self-broadcast transaction.
3. **Load the funds to shield onto `0x1`.** Keep them there rather than moving them through `0x2` first.
4. **Shield from `0x1` to `0zk1`.** Switch to Wallet 1, open **Shield**, and follow the flow described in Shielding Tokens. The recipient defaults to your own private address (`0zk1`) — confirm this on the **One last check** screen before submitting.
5. **Send privately from `0zk1` to `0zk2`.** This is a shielded-to-shielded transfer. It is submitted on-chain with the sender, recipient and amount encrypted, and its gas is paid by a broadcaster or by you.
6. **Unshield from `0zk2` to `0x2`.** Switch to Wallet 2, open **Unshield**, and follow the flow described in Unshielding Tokens, self-broadcasting with `0x2`'s own gas. `0x2` — never `0x1` — is the address that should end up holding the funds publicly again.

**Important Notes**

* Keep enough native gas token in each public wallet you use for self-broadcasting. If a wallet runs out of gas, its transaction cannot be submitted.
* Double-check every `0x` and `0zk` address before confirming. Shield, private send and unshield transactions cannot be reversed.
* Shield and unshield transactions, and the public addresses involved, remain visible on-chain. Private Mode does not provide legal anonymity.
* Do not use privacy features to conceal the source of funds, to launder money, or to evade sanctions or taxes. See the Terms of Service.
