web3_universal_staking 0.1.1+1 copy "web3_universal_staking: ^0.1.1+1" to clipboard
web3_universal_staking: ^0.1.1+1 copied to clipboard

Staking services for Web3 Universal SDK. Supports ETH 2.0 deposit contract and liquid staking protocols.

example/main.dart

import 'package:web3_universal_chains/web3_universal_chains.dart';
import 'package:web3_universal_client/web3_universal_client.dart';
import 'package:web3_universal_staking/web3_universal_staking.dart';

void main() async {
  final client = ClientFactory.createPublicClient(
    rpcUrl: 'https://eth-mainnet.g.alchemy.com/v2/key',
    chain: Chains.ethereum,
  );

  // Initialize Staking service
  final staking = StakingService(publicClient: client);
  print('Staking service initialized: $staking');
}
0
likes
160
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Staking services for Web3 Universal SDK. Supports ETH 2.0 deposit contract and liquid staking protocols.

Homepage
Repository (GitHub)
View/report issues

Topics

#web3 #ethereum #staking

Documentation

API reference

License

MIT (license)

Dependencies

http, web3_universal_client, web3_universal_contract, web3_universal_core

More

Packages that depend on web3_universal_staking