{"id":13632874,"url":"https://github.com/ZenGo-X/binance-thresh-wallet","last_synced_at":"2025-04-18T05:33:26.544Z","repository":{"id":57126049,"uuid":"187026218","full_name":"ZenGo-X/binance-thresh-wallet","owner":"ZenGo-X","description":"Wallet for Binance chain powered by two-party ECDSA","archived":false,"fork":false,"pushed_at":"2019-09-16T15:54:58.000Z","size":2732,"stargazers_count":51,"open_issues_count":0,"forks_count":11,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-18T04:04:44.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ZenGo-X.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-16T12:44:42.000Z","updated_at":"2024-02-29T07:18:05.000Z","dependencies_parsed_at":"2022-08-31T12:11:31.374Z","dependency_job_id":null,"html_url":"https://github.com/ZenGo-X/binance-thresh-wallet","commit_stats":null,"previous_names":["kzen-networks/binance-thresh-wallet"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fbinance-thresh-wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fbinance-thresh-wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fbinance-thresh-wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fbinance-thresh-wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZenGo-X","download_url":"https://codeload.github.com/ZenGo-X/binance-thresh-wallet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249437019,"owners_count":21271991,"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-08-01T22:03:21.168Z","updated_at":"2025-04-18T05:33:26.100Z","avatar_url":"https://github.com/ZenGo-X.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"Binance chain threshold wallet\n=====================================\nBinance chain wallet powered by two-party ECDSA. \u003cbr\u003e\nSoon to be integrated into the ZenGo iOS wallet (www.zengo.com)\n\n## Installation:\n```\n$ npm install @kzen-networks/binance-thresh-wallet\n```\n## Usage:\nServer (acts as the co-signer in the two-party signing protocol):\n```js\nconst { BncThreshSigServer} = require('@kzen-networks/binance-thresh-wallet');\nconst server = new BncThreshSigServer();\nserver.launch();\n```\n\nClient:\n```js\nconst { BncThreshSigClient } = require('@kzen-networks/binance-thresh-wallet');\n\n(async () =\u003e {\n    const client = new BncThreshSigClient();\n    \n    // initialize\n    await client.init();\n    \n    const address = client.getAddress();\n    console.log(address);\n    // tbnb1zaudxtp40f6w3vgjmxqpxjaxfa7mt09t5x0h2s\n    \n    /* Now you should deposit BNB into this address */\n\n    console.log(await client.getBalance());\n    // [{\"free\":\"0.09244000\",\"frozen\":\"0.00000000\",\"locked\":\"0.00000000\",\"symbol\":\"BNB\"}]\n\n    const toAddress = client.getAddress(1);  // new address\n    console.log(toAddress);\n    // tbnb1glzdlqt70uk7qw8e7jy7u708emfhe9qsdwxhc5\n\n    console.log(await client.transfer(address, toAddress, 0.00123, 'BNB', 'demo!'));\n    // {\"result\":[{\"code\":0,\"hash\":\"DD505FB142B473471D969BA278E82548BEDD637FEC3A3ED6350408B34A74DB9E\",\"height\":\"\",\"log\":\"Msg 0: \",\"ok\":true}],\"status\":200}\n})();\n```\n## Demo:\nYou can also use a demo using the command line.\u003cbr\u003e\nServer:\n```bash\n$ demo/server\n```\nClient:\n```bash\n$ demo/client --help\n\nUsage: client [options] [command]\n\nOptions:\n  -h, --help                               output usage information\n\nCommands:\n  address [options]\n  balance \u003caddress\u003e\n  transfer [options] \u003cfrom\u003e \u003cto\u003e \u003camount\u003e\n  buy_order \u003csymbol\u003e \u003cprice\u003e \u003cquantity\u003e\n  sell_order \u003csymbol\u003e \u003cprice\u003e \u003cquantity\u003e\n  cancel_order \u003csymbol\u003e \u003cref_id\u003e\n\n```\n\nTransfer demo:\n\n|![Transfer demo](https://raw.githubusercontent.com/KZen-networks/binance-thresh-wallet/master/demo/binance-tss-demo.gif \"Binance Threshold Wallet Demo\")|\n|:--:|\n\nTrade Demo:\n\n|![Trade demo](https://raw.githubusercontent.com/KZen-networks/binance-thresh-wallet/master/demo/BNB%20trade%20demo.gif \"Binance Threshold Wallet Demo\")|\n|:--:|\n\n## Contact\nFeel free to [reach out](mailto:github@kzencorp.com) or join the KZen Research [Telegram]( https://t.me/kzen_research) for discussions on code and research.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZenGo-X%2Fbinance-thresh-wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZenGo-X%2Fbinance-thresh-wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZenGo-X%2Fbinance-thresh-wallet/lists"}