{"id":13820308,"url":"https://github.com/orange-wallet/wallet-connect-dart","last_synced_at":"2025-10-23T06:55:05.974Z","repository":{"id":38414292,"uuid":"407128006","full_name":"Orange-Wallet/wallet-connect-dart","owner":"Orange-Wallet","description":"Wallet Connect client in Dart.","archived":false,"fork":false,"pushed_at":"2023-06-22T08:03:18.000Z","size":146,"stargazers_count":116,"open_issues_count":26,"forks_count":79,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-23T06:54:44.799Z","etag":null,"topics":["dapp-protocol","dart","ethereum","flutter","hacktoberfest","library","walletconnect"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wallet_connect","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Orange-Wallet.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":"2021-09-16T10:55:21.000Z","updated_at":"2025-10-16T08:17:44.000Z","dependencies_parsed_at":"2024-01-13T16:22:33.457Z","dependency_job_id":"49cdbbe5-8901-4591-895a-eea06a1294ce","html_url":"https://github.com/Orange-Wallet/wallet-connect-dart","commit_stats":{"total_commits":24,"total_committers":5,"mean_commits":4.8,"dds":"0.16666666666666663","last_synced_commit":"212983f7f7b9c798c1fd381e0c09fd92d6b8137d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Orange-Wallet/wallet-connect-dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orange-Wallet%2Fwallet-connect-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orange-Wallet%2Fwallet-connect-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orange-Wallet%2Fwallet-connect-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orange-Wallet%2Fwallet-connect-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Orange-Wallet","download_url":"https://codeload.github.com/Orange-Wallet/wallet-connect-dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orange-Wallet%2Fwallet-connect-dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280577134,"owners_count":26354072,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dapp-protocol","dart","ethereum","flutter","hacktoberfest","library","walletconnect"],"created_at":"2024-08-04T08:01:01.258Z","updated_at":"2025-10-23T06:55:05.941Z","avatar_url":"https://github.com/Orange-Wallet.png","language":"Dart","funding_links":[],"categories":["Flutter"],"sub_categories":["Flutter SDK / Libraries"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/Orange-Wallet/orangewallet-utils/raw/master/assets/images/walletconnect.png\" alt=\"Wallet Connect Logo\" width=\"70\"/\u003e\n\u003ch1\u003eWallet Connect\u003c/h1\u003e\n\u003c/div\u003e\n\nWallet Connect client in dart highly inspired from [wallet-connect-kotlin](https://github.com/trustwallet/wallet-connect-kotlin) by [Trust Wallet](https://github.com/trustwallet).\n\n## Usage\n\n```dart\n    import 'package:wallet_connect/wallet_connect.dart';\n```\n\n1.  Create instance of Wallet connect client and define callbacks.\n\n```dart\n    final wcClient = WCClient(\n      onConnect: () {\n        // Respond to connect callback\n      },\n      onDisconnect: (code, reason) {\n        // Respond to disconnect callback\n      },\n      onFailure: (error) {\n        // Respond to connection failure callback\n      },\n      onSessionRequest: (id, peerMeta) {\n        // Respond to connection request callback\n      },\n      onEthSign: (id, message) {\n        // Respond to personal_sign or eth_sign or eth_signTypedData request callback\n      },\n      onEthSendTransaction: (id, tx) {\n        // Respond to eth_sendTransaction request callback\n      },\n      onEthSignTransaction: (id, tx) {\n        // Respond to eth_signTransaction request callback\n      },\n    );\n```\n\n2.  Create WCSession object from wc: uri.\n\n```dart\n    final session = WCSession.from(wcUri);\n```\n\n3.  Create WCPeerMeta object containing metadata for your app.\n\n```dart\n    final peerMeta = WCPeerMeta(\n        name: 'Example Wallet',\n        url: 'https://example.wallet',\n        description: 'Example Wallet',\n        icons: [],\n    );\n```\n\n4.  Connect to a new session.\n\n```dart\n    wcClient.connectNewSession(session: session, peerMeta: peerMeta);\n```\n\n5.  Or connect to a saved session (from step 8).\n\n```dart\n    wcClient.connectFromSessionStore(sessionStore);\n```\n\n6.  Approve a session connection request.\n\n```dart\n    wcClient.approveSession(\n        accounts: [], // account addresses\n        chainId: 1, // chain id\n    );\n```\n\n7.  Or reject a session connection request.\n\n```dart\n    wcClient.rejectSession();\n```\n\n8.  Get active session from sessionStore getter to save for later use.\n\n```dart\n    final sessionStore = wcClient.sessionStore;\n```\n\n9.  Approve a sign transaction request by signing the transaction and sending the signed hex data.\n\n```dart\n    wcClient.approveRequest\u003cString\u003e(\n        id: id,\n        result: signedDataAsHex,\n    );\n```\n\n10. Approve a send transaction request by sending the transaction hash generated from sending the transaction.\n\n```dart\n    wcClient.approveRequest\u003cString\u003e(\n        id: id,\n        result: transactionHash,\n    );\n```\n\n11. Approve a sign request by sending the signed data hex generated.\n\n```dart\n    wcClient.approveRequest\u003cString\u003e(\n        id: id,\n        result: signedDataAsHex,\n    );\n```\n\n12. Or reject any of the requests above by specifying request id.\n\n```dart\n    wcClient.rejectRequest(id: id);\n```\n\n13. Disconnect from a connected session locally.\n\n```dart\n    wcClient.disconnect();\n```\n\n14. Permanently close a connected session.\n\n```dart\n    wcClient.killSession();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-wallet%2Fwallet-connect-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forange-wallet%2Fwallet-connect-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-wallet%2Fwallet-connect-dart/lists"}