Open your contract to Solana users
Deploy a Solidity contract on Rome (Hadrian testnet, Rubicon mainnet) and open it to Solana wallets — what the contract needs, how a Solana wallet user calls it, per-network addresses, and a launch ch
One deployment, two kinds of users. A contract on Rome is reached by MetaMask users with their EVM key and by Solana wallet users (Solflare, for example) with their Solana key — same address, same state. This page is the end-to-end path: deploy, make the contract Solana-ready, wire the Solana lane in your app, and ship on mainnet.
1. Deploy on the network you want
Rome chains are standard EVM targets: Hardhat, Foundry, viem and ethers work unchanged (full walkthrough in Deploy Solidity Contracts).
Rubicon (mainnet)
7531
https://rubicon.mainnet.romeprotocol.xyz/
USDC
Bridge USDC from Ethereum, Base, Arbitrum, Polygon, Avalanche, Monad or OP (CCTP) or from Solana with the Rome Bridge; it lands as gas
Hadrian (testnet)
200010
https://hadrian.testnet.romeprotocol.xyz/
test USDC
Gas is USDC with 18 decimals on the EVM side; there is no Rome faucet on Rubicon or Hadrian. Writes cost more gas than Ethereum intuition suggests, because most of the cost is creating Solana accounts: a never-used recipient, a new token account, a deployed contract. Use eth_estimateGas, which standard tooling does, and never hardcode 21,000. Measured on Hadrian, deploying a 10-byte contract estimated and used 1,147,921 gas, and a native transfer to a never-used address 1,086,961, against 21,000 for a transfer to an existing address. Rome charges the gas actually used, which in these measurements was never more than the estimate. Fund a few USDC before a first deploy. Verify source on the explorer afterwards (Verify Contracts; the mainnet verifier is https://verify.mainnet.romeprotocol.xyz).
Develop on Hadrian, then redeploy the same artifacts to Rubicon with the chain id and the mainnet wrapper addresses swapped; nothing in the contract changes between networks. Rubicon is in the public registry from v0.3.0, but create-rome-app and rome-cli still pin registry v0.2.0, which has no Rubicon entry, so they cannot target it; for those tools, fill the values by hand from Rubicon. Gas on Rubicon is real USDC at about ten times Hadrian's gas price, so a deploy costs real money there.
2. What makes a contract Solana-ready
A Solana user's EVM identity is their synthetic address, keccak256(solana_pubkey)[12:]: an ordinary msg.sender, with an ordinary nonce. Most contracts need no change at all. The three things that matter:
Take value as ERC-20, not
msg.value. A Solana user's funds are SPL tokens in their wallet, seen on the EVM side as the token's wrapper (wUSDC,wETH,wSOL). The synthetic holds nothing at rest and the user's assets arrive as the wrapper, so pull withtransferFromafter anapproveand return withtransfer. Each user grants the wrapper its SPL delegate right once before the first pull (One-time: grant the wrapper). Apayableentry point only works once the synthetic has been given native gas (the relay path'srome_composeExternalDepositV1), which the fund-and-sweep model does not do. An existing ERC-20 vault, AMM or lending market already has the right shape.Use the canonical wrappers. Each chain has one wrapper per mint; the addresses are in Contract Addresses (Hadrian's also in the public registry). Point constructors at those addresses; do not deploy your own.
Fit the atomic budget where a wallet signs. A Solana wallet signs one Solana transaction, so a Solana-lane call must fit it: about 1.4M compute units, 64 accounts, 4 KB (Constraints). Measured on Hadrian: a transfer, an approve and an Aave supply fit; a Uniswap V3 swap fits with little headroom (about 1.24M CU); an Aave borrow does not and takes the relay path in the next section. Measure with the Solana receipt's
computeUnitsConsumed, requesting the transaction withmaxSupportedTransactionVersion: 1(Rome legs are v1 transactions; without it the RPC refuses the request).
What you do not need: a Solana program, a bridge, a second deployment, or any Rome-specific Solidity. If the contract also calls Solana programs through the precompiles, see Call Solana from EVM.
3. Let a Solana wallet call it
Your app's EVM path is unchanged (MetaMask + submitRomeTx, or plain viem/ethers). For the Solana path there are two shapes.
The SDK lane — one Solana v1 transaction per call. @rome-protocol/sdk (submitRomeTxV1) has the proxy compose one Solana v1 transaction for your EVM call (up to 64 accounts and 4 KB, with no address lookup table; there is no ComputeBudget instruction, treasure wallet or account discovery in your code). The wallet signs twice with the same key: first a readable authorization message (Rome authorization on one line, 0x and the EVM transaction hash on the next), which the chain checks through the Ed25519 program, then the transaction. The app sends the signed transaction to the Solana RPC; the call returns the EVM transaction hash and its receipt. Before the wallet signs the transaction, the SDK checks it: the payer is the only signer, only the Rome program and the Ed25519 verifier run, the Rome instruction carries exactly the call the user authorized, and there is no priority fee. Anything else is refused.
If a call does not fit one transaction, the composer refuses it and the SDK hands it to the proxy to relay, with the same authorization signature, so the user still sees one authorization prompt. The result then has route: "relay". The rules for relayed calls and long calls are in Relayed calls and long calls. A relayed call is paid in the chain's native gas, so the synthetic needs a gas balance: fundSyntheticGas(deps, amountWei) moves the chain's gas token (USDC on Hadrian and Rubicon) from the wallet's token account into it, in one wallet-signed v1 transaction.
The fund leg (buildFundLeg) and the wallet token-account creation before a sweep are plain Solana instructions; submitSolanaInstructionsV1 sends them as v1 transactions too, signed by the same wallet signer, with no proxy involved. The sweep's own call (buildSweepLeg, HelperProgram.transfer_spl) goes through submitRomeTxV1 like any other, and the proxy finds the token accounts. submitRomeTxV1 does not create a new synthetic's account by itself: before the first value-moving call, check isSyntheticProvisioned(...) and, if it is false, submit buildCreatePdaCall(synthetic) through submitRomeTxV1 once. A full deposit-and-withdraw walkthrough with code is in Build a dual-lane app; the mechanics are in Call EVM from Solana. The earlier submitRomeTxSolanaLane, which builds a legacy Solana transaction in the client, is still in the SDK as the older path.
Where each deps value comes from. The SDK's deps object has five required fields (the rest, such as fetchImpl and the timeouts, are optional). Four come from the chain and one from the wallet:
deps field
Where it comes from
Registry getter (@rome-protocol/registry v0.2.0)
proxyUrl
the chain's RPC URL
getChain(chainId).rpcUrl
chainId
the chain ID
getChain(chainId).chainId
programId
the Rome program ID the chain runs on
getChain(chainId).romeEvmProgramId
connection
a Solana RPC for the chain's cluster, where the signed transaction is sent (devnet for Hadrian, mainnet for Rubicon)
getChain(chainId).solana.rpc (a public devnet URL for Hadrian); for mainnet use an RPC of your own
signer
the wallet's LaneSigner, or a Keypair in scripts
none
The leg builders take values that are not in deps. Their mint (called usdcMint in the walkthrough) is the gas token's Solana mint, from getTokens(chainId) (the entry with kind: "gas", field mintId). The wUSDC wrapper address is not a leg-builder input; you use it for the ERC-20 calls, and it is the entry with kind: "spl_wrapper" and symbol wUSDC (field address). The registry covers Hadrian and, from v0.3.0, Rubicon. To fill the Rubicon values by hand instead: proxyUrl https://rubicon.mainnet.romeprotocol.xyz/, chainId 7531, programId RomePq9X3iAoTr813HR7uRarafFDUJty6GdiEceYpzX, mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, the wrapper from the table in the next section, and a Solana mainnet RPC for connection. Rubicon has the full list.
The proxy's external-V1 endpoints — the same lane without the SDK. The SDK wraps the atomic compose, the relay and the gas deposit (fundSyntheticGas). The raw RPC methods remain for clients that do not use the SDK, and they include the iterative compose, which the SDK does not wrap. The wallet signs one Ed25519 message over the call (the readable form Rome authorization\n0x<hash> or the raw hash), and the proxy either composes the Solana transaction(s) for the wallet to sign (rome_composeUnsignedAtomicV1, rome_composeUnsignedIterativeV1 + rome_submitSignedV1Plan) or runs the whole execution itself with one wallet signature (rome_relayUnsignedV1, after a rome_composeExternalDepositV1 (the SDK's fundSyntheticGas) that funds the synthetic's gas balance; relayed calls spend from it, so top it up when it runs low). Method shapes in JSON-RPC Support; the authorisation rules in Call EVM from Solana. Use the relay for anything iterative, and the SDK lane for everything that fits.
Either way the contract sees a normal transaction from the synthetic address and the user never holds an EVM key.
4. Per-network wrapper addresses
Network
wUSDC wrapper
Other wrappers
Rubicon (7531)
0x0952d233b0c254cd375f3bfb3e5869c1a906f9b3
wETH 0x01e8b3573da1d4b7b4b1ce0932cf07c8af0c92e9, wSOL 0xc4e29e0f726a906e93277cbbc37bf27a9848a113
Hadrian (200010)
0xbce339ba4c3a8de3bb8af1c5539e6ac11da3112d
wETH 0x02aeace038269f9961c93d04dcacd6fb3adfa55f, wSOL 0x39f36444fcb79b3e691544aee2a832ebef54ca9f
The native gas token appears as 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee in token lists; it is not an ERC-20 contract. Wrappers carry the SPL mint's decimals, not 18: wUSDC 6, wETH 8, wSOL 9.
5. Launch checklist
Deployed on Hadrian; the EVM path works from MetaMask.
Every value-moving entry point is ERC-20 based and pointed at the chain's canonical wrapper.
A Solana wallet that signs v1 transactions (Solflare does on devnet today; Phantom does not yet) completes the full round trip on Hadrian: provision the synthetic (
create_pda, once) → fund leg → grant → approve → call → sweep leg, using the SDK lane; or the relay path if the call is iterative.Each Solana-lane call's
computeUnitsConsumedis read from the Solana receipt and sits under the atomic budget, or the call is routed through the relay.The wrapper grant is in your app's first-deposit flow for both lanes:
isEnabled(user)is checked andapprove_splis sent once when it is false (One-time: grant the wrapper).Source verified on the explorer.
Redeployed on Rubicon with the mainnet wrapper addresses. Its
depsvalues come from the registry (v0.3.0 or later) or by hand from Rubicon. The same round trip is run once with real funds, using a wallet you have checked signs v1 transactions on mainnet.
What's next
Build a dual-lane app — the vault example, step by step, both wallets
Call EVM from Solana — synthetic addresses, account discovery, the external-V1 endpoints
Last updated
Was this helpful?