userop 0.2.0 copy "userop: ^0.2.0" to clipboard
userop: ^0.2.0 copied to clipboard

A lightweight Dart library for quickly and easily building ERC-4337 UserOperations.

example/userop.dart

import 'package:userop/userop.dart';

Future<void> main(List<String> arguments) async {
  final signingKey = EthPrivateKey.fromHex('YOUR_PRIVATE_KEY');
  final bundlerRPC = 'YOUR_BUNDLER_RPC_URL';

  final opts = IPresetBuilderOpts()..overrideBundlerRpc = bundlerRPC;
  final simpleAccount = await SimpleAccount.init(
    signingKey,
    bundlerRPC,
    opts: opts,
  );

  print('SimpleAccount address: ${simpleAccount.getSender()}');
}
0
likes
120
pub points
47%
popularity

Publisher

verified publisherfuse.io

A lightweight Dart library for quickly and easily building ERC-4337 UserOperations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

eth_sig_util, freezed_annotation, http, json_annotation, stream_channel, web3dart

More

Packages that depend on userop