eth_url_parser 0.0.1 copy "eth_url_parser: ^0.0.1" to clipboard
eth_url_parser: ^0.0.1 copied to clipboard

outdated

Module that supports parsing / parsing of all the different ethereum standard urls

example/eth_url_parser_example.dart

import 'package:eth_url_parser/eth_url_parser.dart';

void main() {
  final String uri = EthUrlParser.build(
    targetAddress: '0x1234DEADBEEF5678ABCD1234DEADBEEF5678ABCD',
    functionName: 'transfer',
    parameters: {
      'address': '0x12345',
      'uint256': '1',
    },
  );
  print('uri $uri');
  final Map<String, dynamic> parameters = EthUrlParser.parse(
    'ethereum:0x1234DEADBEEF5678ABCD1234DEADBEEF5678ABCD',
  );
  print('scheme ${parameters['scheme']}');
  print('targetAddress ${parameters['targetAddress']}');
}
2
likes
0
points
55
downloads

Publisher

verified publisherfuse.io

Weekly Downloads

Module that supports parsing / parsing of all the different ethereum standard urls

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

decimal

More

Packages that depend on eth_url_parser