bool isValidAddress(String address) { // Check if the address starts with '0x' and has a total length of 66 characters return address.startsWith('0x') && address.length == 66; }