> For the complete documentation index, see [llms.txt](https://docs.rome.builders/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rome.builders/apps-on-rome/bloom/lanes.md).

# The two lanes

One token deployment, two wallet worlds. Both lanes execute the **same contracts** with the **same compliance gate** — they differ only in who signs and how the transaction reaches the chain.

## EVM lane

Standard Ethereum tooling, unchanged: the wallet signs an EVM transaction, the chain's JSON-RPC endpoint accepts it, the token contract enforces the allowlist. Nothing Bloom-specific to integrate.

Rome gas is USDC-denominated, and a write costs more than its Ethereum equivalent whenever it has to create Solana accounts (a first-time holder, a new token account). Use `eth_estimateGas`, as standard tooling does, and never hardcode 21,000; the estimate includes the account creation, and Rome charges the gas actually used. A gated transfer also pays for the allowlist check, so it costs more than a plain transfer of the same size.

## Solana lane

A Solana wallet drives the same EVM contracts **natively — no EVM key exists anywhere**. Every call is a Solana v1 transaction that the chain's proxy composes for the wallet to sign. There are no address lookup tables and no compute-budget instructions to build: the proxy sets the compute and heap budget itself.

1. **Identity.** The user's EVM-side address is *synthetic*: derived deterministically as `keccak256(solana_pubkey)[12..32]`. The Rome EVM program derives it on-chain from the transaction's actual signer — it cannot be spoofed, and no secp256k1 private key for it exists, so **the Solana signature is the only thing that can ever drive this address**.
2. **Authorize.** The app builds the call as an unsigned EIP-1559 payload, using the nonce, gas price and gas estimate it reads from the chain. The wallet signs a readable message — it shows as *Rome authorization* followed by a hash of the call — which proves the Solana key authorizes this exact EVM payload. This is the first prompt, and the proxy will not compose the call without it.
3. **Compose.** The app sends the payload and that signature to the proxy. The proxy checks the signature, emulates the call to find which Solana accounts it touches and which are writable, and returns one Solana v1 transaction. The app checks the returned message before it asks the wallet to sign it.
4. **Sign and submit.** The wallet signs the transaction itself: the second prompt, a different signature over a different byte string. The app sends the signed transaction straight to a Solana RPC; the user pays the Solana fee in SOL from their own wallet.
5. **Confirm.** The transaction confirms on Solana; the EVM view catches up a beat later, so the app waits for the synthetic address's nonce to move before it sends the next call.

**The wallet has to sign Solana v1 transactions.** The lane fails closed without that: a wallet that cannot sign a v1 transaction stops the call with an error, and the app never falls back to an older transaction format. Solflare signs v1 on devnet today; Phantom does not yet.

### Before the call: cash and the one-time grant

Two things can come before a Solana-lane call, and each appears as its own step with its own prompts:

* **Moving cash in.** A call that spends wUSDC pulls it from the synthetic address, which holds nothing at rest. If the synthetic holds less than the call needs, the app first moves the shortfall from the wallet's own USDC token account to the synthetic's. This is one Solana transaction signed with one prompt, not an EVM call: an idempotent create of the synthetic's token account, then the Rome program's activate-token-account instruction, which moves the tokens without running the EVM. It is skipped when the synthetic already holds enough.
* **The one-time wrapper grant.** wUSDC is the wrapper of an SPL token, and a wrapper moves a user's tokens as that user's SPL delegate. The first time a wallet's synthetic address spends wUSDC, the grant is not yet in place, and the app puts an **Allow wUSDC transfers** step ahead of the rest. It is one call like any other (two prompts), once per wallet. See [One-time grant per wallet](https://docs.rome.builders/core-concepts/token-interop.md#one-time-grant-per-wallet).

A buy from a fresh Solana wallet is therefore a short sequence: move cash in, allow wUSDC transfers, approve the storefront, buy.

### Calls too large for one transaction

An atomic Solana transaction has fixed ceilings: about 1.4M compute units, 64 accounts and 4 KB on the wire (see [Constraints](https://docs.rome.builders/core-concepts/constraints.md)). Bloom always tries the direct, wallet-signed transaction first. Only when the proxy refuses the call because it does not fit one transaction does the app hand it to the proxy to **relay**, and never before:

* **One prompt for that call.** The relay reuses the authorization message the wallet already signed for the refused attempt, so there is no second identical prompt and no transaction to sign. The proxy composes the call, submits it to Solana (in as many transactions as it needs) and pays the Solana fees itself.
* **Rome gas comes from the synthetic's balance.** A relayed call is paid in the chain's native gas, in wei, from the synthetic address. If that balance is short of the call's cost, the app first tops it up from the wallet, in whole units of 10^12 wei: one more prompt, normally once per wallet, like the grant.
* **The hash is a Rome transaction hash.** The result of a relayed call is the proxy's EVM transaction hash, not a Solana signature, so it will not open on a Solana explorer; look it up on the chain's own explorer.

The relay applies to whatever call the proxy reports as too large for one transaction, which in Credit can include the larger market actions. Most calls, including a plain transfer and an approval, fit one transaction and never take this route. The mechanics of relayed calls and their limits are in [Relayed calls and long calls](https://docs.rome.builders/developer-guides/call-evm-from-solana.md#relayed-calls-and-long-calls).

### Prompts per step

| Step                                                      | Wallet prompts                                                |
| --------------------------------------------------------- | ------------------------------------------------------------- |
| Move cash in (only if short)                              | 1                                                             |
| Allow wUSDC transfers (once per wallet)                   | 2                                                             |
| A call that fits one transaction (approve, buy, transfer) | 2: the authorization message, then the transaction            |
| A call that has to be relayed                             | 1, plus 1 for the one-time gas top-up if the balance is short |

On the Invest asset page, a Solana wallet goes through the cash-in, the grant, the approval and the buy in one run after pressing Buy, and the button notes "two wallet prompts" while each step signs. The named steps ("Transferring your cash") and the up-front prompt counts are shown on Trade and Credit. An EVM wallet also gets a one-time *Allow wUSDC transfers* step on the buy panel.

### Measured compute, from the earlier lane

Before the move to v1 transactions, the lane built its own transaction and measured these figures on Rome devnet, ranges observed across two chains. They have not been re-measured on the v1 transaction the proxy composes now, so read them as an order of magnitude, not a budget:

| Solana-lane flow                                                | CU         |
| --------------------------------------------------------------- | ---------- |
| Gated RWA transfer                                              | \~339–381K |
| wUSDC approve                                                   | \~189–191K |
| Storefront buy (approve + buy, two transactions)                | \~730–796K |
| Cash-leg sweep to the wallet's own token account                | \~42–54K   |
| Plain value transfer                                            | \~47K      |
| `TestApprover.approve` — allowlist admission, **wallet-signed** | 220,794    |

Solana's per-transaction compute ceiling is 1.4M CU. Measure your own call from the Solana transaction's `meta.computeUnitsConsumed` (`getTransaction` on a Solana RPC; the chain's EVM receipt has no such field) rather than assuming one of these.

## Custody: why the RWA stays at the synthetic

The design question every permissioned asset must answer: *can the token leak out of the compliance perimeter?* On the Solana lane the answer is structural, not policy:

* **The RWA is EVM-state-resident.** Its balances are storage inside the Rome EVM program's accounts. There is **no SPL mint** of it, no token account representation, nothing Solana-native to move. (This is deliberate — a wrapped/mirrored version would be the escape hatch.)
* **The Solana-side plumbing can't touch it.** The lane's asset-moving legs (`create_ata`, SPL transfers, sweeps) operate on SPL token accounts; EVM storage balances have no such account. There is no instruction that moves an EVM balance to a Solana token account.
* **Only the owner's Solana signature drives the synthetic**, and every movement it can express is a call into the token contract — which runs the allowlist gate — so a transfer to a non-whitelisted address reverts identically whether signed by an EVM key or a Solana key.
* **The cash leg is the deliberate exception.** wUSDC (yield, sale proceeds) is SPL-backed and *should* round-trip: the exit leg (`transfer_spl`) moves it from the synthetic to the wallet's own associated token account, verified end-to-end. Asset stays in the perimeter; cash flows freely.

Two practical consequences, stated plainly: a Solana wallet UI won't display the RWA holding (there is no SPL token to list) — the Bloom app is the positions surface; and a lost Solana key is recovered through the issuer's process ([COMPLIANCE.md](https://docs.rome.builders/apps-on-rome/bloom/compliance.md#issuer-powers-transfer-agent-shaped)), not by moving the asset out-of-band — which is exactly the property a permissioned asset wants.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rome.builders/apps-on-rome/bloom/lanes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
