Writing to Network
Now that we understand how to read data from SOON Network, let’s learn how to write data to it. On SOON, we interact with the network by sending transactions made up of instructions, just like on Solana. However, these transactions benefit from SOON’s Layer 2 architecture, offering faster finality and lower costs while maintaining Ethereum’s security guarantees.
Let’s walk through two common operations - transferring SOL and creating a token - to understand how transactions work on SOON Network.
Transfer SOL
First, let’s send a simple SOL transfer from your wallet to another account. This requires invoking the transfer instruction on the System Program. Open this example in Solana Playground:
This code demonstrates several key concepts:
-
Creating an instruction (the transfer)
-
Building a transaction from that instruction
-
Sending and confirming the transaction
-
Using SOON’s explorer to verify the result
When you run this code, you’ll see the transaction signature and a link to view it in SOON’s explorer. Click the link to see details about your transaction, including its rapid confirmation time - a benefit of SOON’s Layer 2 architecture.
Create a Token
Now let’s try something more complex - creating a new token. This requires multiple instructions working together. Open this example in Solana Playground:
This example shows how to:
-
Calculate space and rent for a new account
-
Create and initialize a mint account
-
Combine multiple instructions in one transaction
-
Sign with multiple keypairs
When you run the code, you’ll get two links:
-
One for the transaction details
-
One for the newly created mint account
Examining these in SOON’s explorer shows how our Layer 2 processes complex transactions with multiple instructions efficiently.
Understand Transaction Confirmations
On SOON Network, transactions confirm quickly thanks to our Layer 2 architecture, but they inherit Ethereum’s security through our rollup design. When you see "confirmed"
status, it means:
-
The transaction has been processed by SOON’s network
-
The transaction is included in a rollup batch
-
The transaction data is available for verification
This gives you both speed and security - fast confirmations backed by Ethereum’s consensus.
Next Steps
Now that you understand how to write data to SOON Network through transactions, you’re ready to:
-
Deploy your own programs
-
Create more complex transactions
-
Build applications that leverage SOON’s Layer 2 performance
Continue to the next section to learn about deploying programs on SOON Network.