Skip to main content
Virtual Environments allow you to send transactions to the virtual network. The process of sending transactions is identical to sending transactions on the real network. Transactions can be sent through the Dashboard UI or via RPC. This page shows you how to do it using both methods.

Sending via RPC

Use the eth_sendRawTransaction RPC method to send transactions to your Virtual Environment. The example below shows you how to send a transaction using Viem, Ethers.js and the cURL command. The code snippets are runnable without changes.

Sending from the Dashboard

Transactions sent from the Dashboard will be recorded in the Virtual Environment’s state. These transactions do not need to be signed and can be sent to and from any address on the Virtual Environment. From the Explorer view, click on the Send icon from the top right to access the Send Transaction input form.

Sending from a contract page

On a contract page inside a Virtual Environment, the Read/Write tab sends write functions as transactions through the Virtual Environment’s RPC. The transactions don’t need to be signed and are recorded in the Virtual Environment’s state like any other transaction. Write sub-tab of the Read/Write tab on the WETH9 contract inside a Virtual Environment, with a selected sender address, Fund and View Portfolio buttons, and the expanded approve function showing its parameters and the Write and Simulate buttons

Next steps