solana_kit_mobile_wallet_adapter 0.2.0 copy "solana_kit_mobile_wallet_adapter: ^0.2.0" to clipboard
solana_kit_mobile_wallet_adapter: ^0.2.0 copied to clipboard

Flutter plugin for the Solana Mobile Wallet Adapter protocol. Enables dApps to communicate with wallet apps for transaction signing on Android. iOS compiles but is a no-op.

example/main.dart

// Examples intentionally print CLI output for demonstration purposes.
// ignore_for_file: avoid_print

import 'package:solana_kit_mobile_wallet_adapter/solana_kit_mobile_wallet_adapter.dart';

Future<void> main() async {
  final request = AuthorizeDappRequest.fromParams(
    requestId: 'req-1',
    sessionId: 'session-1',
    params: {
      'identity': {
        'name': 'Example dApp',
        'uri': 'https://example.com',
      },
      'chain': 'solana:mainnet',
    },
  )..completeWithAuthorize(
      accounts: const [
        AuthorizedAccount(
          address: 'dGVzdA==',
          label: 'Primary Account',
        ),
      ],
      authToken: 'example-token',
    );

  final response = await request.future;
  print('Wallet authorize response: $response');
}
0
likes
150
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for the Solana Mobile Wallet Adapter protocol. Enables dApps to communicate with wallet apps for transaction signing on Android. iOS compiles but is a no-op.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, solana_kit_addresses, solana_kit_errors, solana_kit_keys, solana_kit_mobile_wallet_adapter_protocol, solana_kit_transactions, web_socket_channel

More

Packages that depend on solana_kit_mobile_wallet_adapter

Packages that implement solana_kit_mobile_wallet_adapter