Run Remus Example
Remus transactions involve multiple Ethereum-like rollup transactions bundled within a single Solana transaction. This structure allows for cross-rollup atomic transactions.
Last updated
Was this helpful?
Remus transactions involve multiple Ethereum-like rollup transactions bundled within a single Solana transaction. This structure allows for cross-rollup atomic transactions.
Last updated
Was this helpful?
Run Remus example using:
We explain the methods used in rome-sdk/examples/remus.rs below.
The Rome struct will be used to compose transactions. Initialize it with your configuration:
Create a RemusTx transaction and then compose it using the Rome transaction structure:
Send the transaction to the Solana network:
The helper methods are same as in the .
Instruction 3 logs show transfer from wallet ae600d1f94680ef43ab12f8d618f8aafc208fe25 to wallet b94f5374fce5edbc8e2a8697c15331677e6ebf0b for chain 200003.
Instruction 4 logs show transfer from wallet ae600d1f94680ef43ab12f8d618f8aafc208fe25 to wallet b94f5374fce5edbc8e2a8697c15331677e6ebf0b for chain 200004.
The Rollup block explorers show these rollup transactions for chains 200003 and 200004 from wallet ae600d1f94680ef43ab12f8d618f8aafc208fe25 to b94f5374fce5edbc8e2a8697c15331677e6ebf0b.
The Solana block explorer shows the Solana transaction below (). This transaction contains two relevant instructions executed atomically within this single Solana transaction.