{"id":13820388,"url":"https://github.com/onemoongate/sss-flutter-sdk","last_synced_at":"2026-02-28T13:10:36.884Z","repository":{"id":163510652,"uuid":"610253063","full_name":"onemoongate/sss-flutter-sdk","owner":"onemoongate","description":"Flutter Web3 Authentication SDK by MoonGate. Authenticate your users using Social \u0026 Cross-Chain logins.","archived":false,"fork":false,"pushed_at":"2023-05-10T01:23:07.000Z","size":629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-04T08:04:19.472Z","etag":null,"topics":["authentication","ethereum","siwe","solana","tezos","web3"],"latest_commit_sha":null,"homepage":"https://moongate.one","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onemoongate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-06T12:04:05.000Z","updated_at":"2023-05-10T13:34:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"534f0ea2-502b-42ef-be9d-7c1fd719b3e5","html_url":"https://github.com/onemoongate/sss-flutter-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemoongate%2Fsss-flutter-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemoongate%2Fsss-flutter-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemoongate%2Fsss-flutter-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemoongate%2Fsss-flutter-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onemoongate","download_url":"https://codeload.github.com/onemoongate/sss-flutter-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225423597,"owners_count":17472145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","ethereum","siwe","solana","tezos","web3"],"created_at":"2024-08-04T08:01:02.478Z","updated_at":"2026-02-28T13:10:36.805Z","avatar_url":"https://github.com/onemoongate.png","language":"Dart","funding_links":[],"categories":["Flutter"],"sub_categories":["Flutter SDK / Libraries"],"readme":"# Flutter SDK: Ethereum Sign In\n\nThis guide will help you integrate the Ethereum sign in functionality into your Flutter app using the MoonGateConfig and MoonGateAuth from the Flutter SDK.\n\n## Prerequisites\n\n1. Make sure you have Flutter and Dart installed and set up.\n2. Install the MoonGate Flutter SDK package in your project, you can do so by running\n```dart \nflutter pub add moongate_flutter_sdk\n```\n\n## Getting Started\n\nFirst, you need to set up the API key in your app. You can do this by calling the `MoonGateConfig.setApiKey` function with your API key as an argument.\n\n```dart\nimport 'package:moongate_flutter_sdk/library.dart';\n\nvoid main() {\n  MoonGateConfig.setApiKey(\"YOUR API KEY HERE\");\n  runApp(MyApp());\n}\n```\n\nReplace YOUR API KEY HERE with your actual API key.\n\n## Implementing Ethereum Sign In\nTo implement Ethereum sign in, you can use the signWithEthereum and moonGateAuth functions provided by the MoonGate Flutter SDK.\n\nCreate a new function called connectWallet which will handle the sign in process:\n    \n```dart\nimport 'package:moongate_flutter_sdk/library.dart';\n\n...\n\nFuture\u003cvoid\u003e connectWallet(BuildContext context) async {\n  await signWithEthereum(context);\n  String mnemonic = await moonGateAuth.getMnemonic();\n  String privatekey = await moonGateAuth.getPrivateKey();\n}\n```\n\nMake sure to pass the BuildContext context as an argument to the connectWallet function. This is required for the WalletConnect modal to show up.\n\nHere's a simple example of how to use the connectWallet function in your app:\n\n```dart\nimport 'package:moongate_flutter_sdk/library.dart';\n\nvoid main() {\n  MoonGateConfig.setApiKey(\"YOUR API KEY HERE\");\n  runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: Scaffold(\n        appBar: AppBar(title: Text('Ethereum Sign In Example')),\n        body: Center(child: SignInButton()),\n      ),\n    );\n  }\n}\n\nclass SignInButton extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return ElevatedButton(\n      onPressed: () async {\n        await connectWallet(context);\n      },\n      child: Text('Connect Wallet'),\n    );\n  }\n}\n\nFuture\u003cvoid\u003e connectWallet(BuildContext context) async {\n  await signWithEthereum(context);\n  String mnemonic = await moonGateAuth.getMnemonic();\n  String privatekey = await moonGateAuth.getPrivateKey();\n}\n```\nAfter the user has successfully signed in with their Ethereum wallet, the mnemonic and privatekey variables will contain the user's mnemonic phrase and private key, respectively. You can use these values to authenticate and perform various actions on behalf of the user within your app.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonemoongate%2Fsss-flutter-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonemoongate%2Fsss-flutter-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonemoongate%2Fsss-flutter-sdk/lists"}