Skip to main content

EVM Transactions

This guide covers EVM transactions on Monolythium.

Transaction Types

TypeDescription
TransferSend LYTH to another address
Contract deploymentDeploy smart contract
Contract interactionCall contract functions

Sending Transactions

Using MetaMask

  1. Connect to Monolythium network
  2. Click Send
  3. Enter recipient and amount
  4. Confirm transaction

Using ethers.js

const { ethers } = require('ethers');

const provider = new ethers.JsonRpcProvider('https://rpc.sprintnet.monolythium.com:8545');
const wallet = new ethers.Wallet(privateKey, provider);

const tx = await wallet.sendTransaction({
to: '0x...',
value: ethers.parseEther('1.0')
});

await tx.wait();
console.log('Transaction hash:', tx.hash);

Using web3.js

const Web3 = require('web3');

const web3 = new Web3('https://rpc.sprintnet.monolythium.com:8545');
const account = web3.eth.accounts.privateKeyToAccount(privateKey);

const tx = {
from: account.address,
to: '0x...',
value: web3.utils.toWei('1', 'ether'),
gas: 21000
};

const signedTx = await account.signTransaction(tx);
const receipt = await web3.eth.sendSignedTransaction(signedTx.rawTransaction);

Gas Configuration

Gas Limit

Maximum gas willing to consume:

TransactionTypical Gas
Transfer21,000
ERC-20 transfer60,000
Contract deploy100,000 - 5,000,000+
Contract call30,000 - 500,000+

Gas Price

Minimum gas price: 0.025 alyth (0.025 gwei equivalent)

const gasPrice = await provider.getFeeData();
console.log('Gas price:', gasPrice.gasPrice);

Transaction Receipt

After confirmation:

const receipt = await tx.wait();
console.log({
transactionHash: receipt.hash,
blockNumber: receipt.blockNumber,
gasUsed: receipt.gasUsed,
status: receipt.status // 1 = success, 0 = failure
});

Error Handling

Common errors:

ErrorCauseSolution
insufficient fundsNot enough LYTHAdd more LYTH
nonce too lowTransaction already sentUse higher nonce
gas limit exceededOut of gasIncrease gas limit
execution revertedContract errorCheck contract logic

Transaction Lifecycle

Create → Sign → Submit → Pending → Included → Confirmed
  1. Create: Build transaction object
  2. Sign: Sign with private key
  3. Submit: Send to node
  4. Pending: In mempool
  5. Included: In a block
  6. Confirmed: Block finalized

On Monolythium, confirmation is instant (deterministic finality).

FAQ

How fast are confirmations?

~2 seconds (one block). Finality is immediate.

Can transactions be reverted?

No. Once confirmed, transactions are final.

What's the difference from Ethereum?

Same EVM, different consensus. Faster finality, no reorgs.