Writing to the Network
Now that we understand how to read data from the CARV SVM Chain, let’s learn how to write data. On CARV SVM Chain, transactions consist of instructions—just like on Solana—but they benefit from CARV’s Layer 2 architecture. This architecture offers faster finality, lower costs, and seamless integration with Ethereum’s security guarantees.
Let’s explore a common operation: transferring SOL, to understand how transactions work on CARV SVM Chain.
Transfer SOL
To perform a simple transfer of SOL from one account to another, we invoke the transfer
instruction on the System Program. Here’s how you can do it:
Key Concepts:
Creating Instructions: Specifies what the transaction will do (e.g., transfer funds).
Building Transactions: Combines one or more instructions.
Sending and Confirming: Executes the transaction and verifies its success.
Explorer Integration: Links to CARV’s explorer for transaction details.
When you run this code, you’ll see a transaction signature and a link to view it in CARV’s explorer. Clicking the link provides transaction details, including the fast confirmation enabled by CARV SVM Chain.
Last updated