Getting started
This guide shows how to send your first transaction on Lighter EVM using cast.
Before you start:
use a disposable account that you control
obtain access to the Lighter EVM RPC endpoint
fund your account with Lighter EVM ETH
Prerequisites
Install Foundry (if not already installed), then make sure cast is available:
cast --version1. Export environment variables
export LIGHTER_EVM_RPC_URL="<lighter_evm_rpc_url>"
export LIGHTER_EVM_PRIVATE_KEY="<your_private_key>"
export RECIPIENT="0x1111111111111111111111111111111111111111"2. Confirm your setup
Check the chain ID:
cast chain-id --rpc-url "$LIGHTER_EVM_RPC_URL"This should print 19529.
Get your sender address from the private key:
Check sender balance:
3. Send a transaction with cast
Send a simple ETH transfer:
cast send prints the transaction hash and receipt fields after submission.
4. Verify the transaction
Inspect the transaction:
Inspect the receipt:
Check recipient balance:
Last updated
Was this helpful?