> For the complete documentation index, see [llms.txt](https://docs.symm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.symm.io/trader-documentation/building-a-trading-bot/part-1-one-time-on-chain-setup/bind-the-sub-account-to-a-partyb.md).

# Bind the sub-account to a PartyB

Symmio core's `sendQuote` usually runs a Muon signature check on a `SingleUpnlAndPriceSig` parameter, unless the trading account is bound to a specific PartyB, in which case the check is skipped. The solver's instant-trade flow ships an empty `upnlSig` placeholder in the calldata it sends on-chain (it has no way to inject a fresh Muon sig into the EIP-712 op you signed), so without a bind your `executeTemplate` call reverts on-chain with `"LibMuon: Expired signature"`. That surfaces on the notifications feed as `SendQuoteTransaction` / `action_status = failed` / `error_code = 2000`.

Binding fixes this permanently for the sub-account. It pins the sub-account to the deployment's hedger and tells the core "I'm not using Muon oracles for this account; trust the PartyB."

**Signed by.** Owner EOA. The call goes to the AccountLayer's `_call(account, callDatas[])`, because [`bindToPartyB` ](https://intent.symmscan.com/inspector/hyperevm/diamond?method=0xcf462cb2)lives on the Symmio core and the core needs to see the *sub-account* as `msg.sender`. `_call` is the AccountLayer's mechanism for forwarding calls with the right signer context.

**Calldata to encode for the inner call:**

```
selector  = 0xcf462cb2                        // bindToPartyB(address)
arguments = abi.encode(address: hedger)
```

So the actual outer call is:

```
AccountLayer._call(
    account   = subAccount,
    callDatas = [ 0xcf462cb2 || abi.encode(hedger) ]
)
```

After it lands, sanity-check by reading [`Symmio.getBindState(subAccount)`: `status == 1`](https://intent.symmscan.com/inspector/hyperevm/diamond?method=0xa8eda21b) means bound. Once done, leave it alone. There's a `requestToUnbindFromPartyB` flow with a cooldown if you ever need to switch solvers, but you almost never will.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.symm.io/trader-documentation/building-a-trading-bot/part-1-one-time-on-chain-setup/bind-the-sub-account-to-a-partyb.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
