mutichain_wallet_sdk 1.0.0
mutichain_wallet_sdk: ^1.0.0 copied to clipboard
A Mutichain Wallet Flutter SDK.
wallet_multichain #
A flutter plugin for execute wallet command (use js sdk)
Usage #
To use this plugin, add wallet_multichain as a dependency in your pubspec.yaml file.
Engineering #
sequenceDiagram
autonumber
participant bybit_app
participant mutichain_wallet_sdk
bybit_app->>mutichain_wallet_sdk: createWallet()
critical Webview
mutichain_wallet_sdk->>mutichain_wallet_sdk: JS.createWallet()
end
mutichain_wallet_sdk->>bybit_app: returnWalletObject()
Example #
import 'package:flutter/material.dart';
import 'package:mutichain_wallet_sdk/wallet_multichain_util.dart';
void main() => runApp(
const MaterialApp(
home: Material(
child: Center(
child: ElevatedButton(
onPressed: _createWallet,
child: Text('createWallet()'),
),
),
),
),
);
Future<void> _createlallet() async {
WalletMultichainUtil().createWallet((value) {
print('create wallet address :$value');
Fluttertoast.showToast(msg: 'create wallet address :$value');
});
}