{"id":19580197,"url":"https://github.com/xclud/dart_wallet","last_synced_at":"2025-04-27T08:32:13.998Z","repository":{"id":59150112,"uuid":"396091719","full_name":"xclud/dart_wallet","owner":"xclud","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-03T20:55:33.000Z","size":255,"stargazers_count":33,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-25T12:54:40.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wallet","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xclud.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-14T18:17:34.000Z","updated_at":"2025-04-03T20:55:37.000Z","dependencies_parsed_at":"2023-12-26T08:20:56.421Z","dependency_job_id":"5e4748a8-4e1b-478b-baad-c68eefab5a07","html_url":"https://github.com/xclud/dart_wallet","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":"0.038461538461538436","last_synced_commit":"ead371d6f8e58ec52061a70b3769f5d53f51fa08"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/dart_wallet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251112546,"owners_count":21538162,"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":[],"created_at":"2024-11-11T07:23:57.253Z","updated_at":"2025-04-27T08:32:09.306Z","avatar_url":"https://github.com/xclud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Crypto wallet package for Bitcoin, Ethereum and Tron written in pure Dart.\n\n## Getting started\n\nIn your `pubspec.yaml` file add:\n\n```dart\ndependencies:\n  wallet: any\n```\n\n## Usage\n\n### Create Tron address from Mnemonic and Passphrase\n\n```dart\nimport 'package:wallet/wallet.dart' as wallet;\n\nfinal mnemonic = '\u003cYOUR MNEMONIC\u003e';\nfinal passphrase = '';\n\nfinal seed = wallet.mnemonicToSeed(mnemonic, passphrase: passphrase);\nfinal master = wallet.ExtendedPrivateKey.master(seed, wallet.xprv);\nfinal root = master.forPath(\"m/44'/195'/0'/0/0\");\n\nfinal privateKey = wallet.PrivateKey((root as wallet.ExtendedPrivateKey).key);\nfinal publicKey = wallet.tron.createPublicKey(privateKey);\nfinal address = wallet.tron.createAddress(publicKey);\n\nprint(address);\n```\n\n### Validate a Tron address\n\n```dart\nimport 'package:wallet/wallet.dart' as wallet;\n\nconst address = 'TCB9WxaRSMEXiVaVys9DEAXbRc6JNuKpjA';\nfinal isValid = wallet.isValidTronAddress(address);\n\nprint(isValid); // True\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fdart_wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_wallet/lists"}