userop 0.3.1 copy "userop: ^0.3.1" to clipboard
userop: ^0.3.1 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
150
points
277
downloads

Publisher

verified publisherfuse.io

Weekly Downloads

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

Homepage
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