eip55 1.0.2 copy "eip55: ^1.0.2" to clipboard
eip55: ^1.0.2 copied to clipboard

Utility to convert an upper or lower case Web3/Ethereum address to a checksum address (EIP55).

example/lib/main.dart

import 'package:eip55/eip55.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'EIP55 Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'EIP55'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              '0x68775f2604f67a571f626c99ae4eb252b579dcd7',
            ),
            Text(
              toEIP55Address('0x68775f2604f67a571f626c99ae4eb252b579dcd7'),
            ),
          ],
        ),
      ),
    );
  }
}
4
likes
140
pub points
70%
popularity

Publisher

verified publisherpwa.ir

Utility to convert an upper or lower case Web3/Ethereum address to a checksum address (EIP55).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

pointycastle

More

Packages that depend on eip55