userop 0.0.9 copy "userop: ^0.0.9" to clipboard
userop: ^0.0.9 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()}');
}
1
likes
0
pub points
19%
popularity

Publisher

verified publisherfuse.io

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

eth_sig_util, freezed_annotation, http, json_annotation, web3dart

More

Packages that depend on userop