Rome Docs
  • Getting Started
  • Overview of Rome
    • Rome Scales Bitcoin
      • How Rome Scales Bitcoin
    • Rome Scales Ethereum
      • How Rome Scales Ethereum
    • Rome Scales Rollups
      • How Rome Scales Rollups
    • Rome Provides Interop with Cosmos
      • How Rome Provides Interop with Cosmos
  • Nexus: Rome's Based Sequencer
    • How Nexus Works
    • Transaction Flow
  • Rome Interop
    • Rome SDK
    • Rome SDK Setup
      • Prepare Environment
      • Set Configuration
      • Run Rhea Example
      • Run Remus Example
      • Run Romulus Example
    • Remus: Cross-Rollup Atomicity
    • Romulus: Cross-Chain Atomicity
  • L2 EVM Setup
    • Prepare Config
    • Download Repos
    • Register your L2
    • Initialize your L2
    • Setup OP Geth Node
    • Run Block Explorer
    • Airdrop & Metamask
    • Check L2 State
    • Simple Transfers
    • Uniswap
    • Run on Remote Server
      • Setup AWS Server
      • Setup Certificate
  • Rome EVM
    • How to use Rome EVM
    • RPC Information
    • Tutorial to deploy a smart contract on Rome EVM
  • Shared Sequencer
    • Atomicity
    • Rome Transactions
    • Rhea
    • Hercules
    • Data Availability
    • Settlement
Powered by GitBook
On this page

Was this helpful?

  1. Rome Interop
  2. Rome SDK Setup

Set Configuration

Set SDK configuration including info about Solana, Rollups, and Payers

Update rome-sdk/example.config.json to specify:

{
    "rpc_url": "https://apius.devnet.romeprotocol.xyz",
    "commitment": "confirmed",
    "rollups": {
        "200002": "RD2Gg7Lcnv62XmRHAzxh6fQQfMRzHtN5LeKPVBhYU5S",
        "200003": "RD2Gg7Lcnv62XmRHAzxh6fQQfMRzHtN5LeKPVBhYU5S",
        "200004": "RD2Gg7Lcnv62XmRHAzxh6fQQfMRzHtN5LeKPVBhYU5S",
        "200005": "RD2Gg7Lcnv62XmRHAzxh6fQQfMRzHtN5LeKPVBhYU5S"
    },
    "payers": [
        {
            "payer_keypair": "/Users/username/.config/solana/id.json",
            "number_holders": 64
        }
    ]
}

The rpc_url points to Rome's Testnet Solana node (https://apius.devnet.romeprotocol.xyz).

The rollups field maps from Chain ID to Solana Program ID, which is the same for all rollups. Specify all rollups you want to work with here. 200001 is included which belongs to Rome EVM.

Make sure to specify a valid payer keypair. Number of holders determines how many transactions can be run in parallel. Payers pay SOLs to execute Solana transactions.

PreviousPrepare EnvironmentNextRun Rhea Example

Last updated 5 months ago

Was this helpful?