Cast Commands for Luntra

Network Information

# Get chain ID
cast chain-id --rpc-url https://rpc.luntrainfrastructure.com/http

# Get latest block
cast block-number --rpc-url https://rpc.luntrainfrastructure.com/http

# Get gas price
cast gas-price --rpc-url https://rpc.luntrainfrastructure.com/http

Account Management

# Get balance
cast balance YOUR_ADDRESS --rpc-url https://rpc.luntrainfrastructure.com/http

# Get nonce
cast nonce YOUR_ADDRESS --rpc-url https://rpc.luntrainfrastructure.com/http

Contract Interaction

# Call contract (read-only)
cast call CONTRACT_ADDRESS "balanceOf(address)" YOUR_ADDRESS \
  --rpc-url https://rpc.luntrainfrastructure.com/http

# Send transaction
cast send CONTRACT_ADDRESS "transfer(address,uint256)" RECIPIENT_ADDRESS AMOUNT \
  --rpc-url https://rpc.luntrainfrastructure.com/http
  --private-key $PRIVATE_KEY

Transaction Information

# Get transaction details
cast tx TX_HASH --rpc-url https://rpc.luntrainfrastructure.com/http
# Get transaction receipt
cast receipt TX_HASH --rpc-url https://rpc.luntrainfrastructure.com/http

Last updated