fuse_wallet_sdk 0.3.4 fuse_wallet_sdk: ^0.3.4 copied to clipboard
Fuse Wallet SDK now has a Dart implementation, making it even easier to integrate blockchain technology into your mobile apps.
example/fuse_wallet_sdk_example.dart
import 'dart:io';
import 'package:fuse_wallet_sdk/fuse_wallet_sdk.dart';
void main() async {
final credentials = EthPrivateKey.fromHex('WALLET_PRIVATE_KEY');
// Create a project: https://console.fuse.io/build
final publicApiKey = 'YOUR_PUBLIC_API_KEY';
final fuseSDK = await FuseSDK.init(
publicApiKey,
credentials,
);
print('Smart contract wallet address: ${fuseSDK.wallet.getSender()}');
exit(1);
}