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

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 TransactionRequest transactionRequest = EthUrlParser.parse(
    'ethereum:0x1234DEADBEEF5678ABCD1234DEADBEEF5678ABCD',
  );
  print(transactionRequest.targetAddress);
  final String uri = EthUrlParser.build(
    TransactionRequest(
      targetAddress: '0x1234DEADBEEF5678ABCD1234DEADBEEF5678ABCD',
      functionName: 'transfer',
      parameters: {
        'address': '0x12345',
        'uint256': '1',
      },
    ),
  );
  print('URL Format for Transaction Requests $uri');
}
2
likes
140
pub points
49%
popularity

Publisher

verified publisherfuse.io

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

freezed_annotation, json_annotation

More

Packages that depend on eth_url_parser