{"id":18558013,"url":"https://github.com/zh/near-paper-sweep","last_synced_at":"2025-05-15T14:30:54.003Z","repository":{"id":66384532,"uuid":"371670898","full_name":"zh/near-paper-sweep","owner":"zh","description":"Read NEAR account private key from a QR code and send the funds to another NEAR account.","archived":false,"fork":false,"pushed_at":"2021-05-28T12:43:54.000Z","size":205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T11:44:36.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-28T10:56:20.000Z","updated_at":"2021-05-28T12:43:57.000Z","dependencies_parsed_at":"2023-02-24T22:45:57.890Z","dependency_job_id":null,"html_url":"https://github.com/zh/near-paper-sweep","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/zh%2Fnear-paper-sweep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fnear-paper-sweep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fnear-paper-sweep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fnear-paper-sweep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zh","download_url":"https://codeload.github.com/zh/near-paper-sweep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254358547,"owners_count":22057939,"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-06T21:38:40.905Z","updated_at":"2025-05-15T14:30:53.937Z","avatar_url":"https://github.com/zh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NEAR paper wallets sweeper\n\n[Paper Wallets](https://privacypros.io/wallets/paper/) are great way to onboard new users.\nThey are also a great way to save funds off-chain (cold storage).\n\nTechnically it is not a difficult task - just **two QR codes with public and private key**. However some sweeping functionality need to be added to the real wallets.\n\nCurrent application will read the secret QR code of NEAR paper wallets, created for example with [NEAR Paper Wallets Generator](https://github.com/zh/near-paper-web), and send the funds to some NEAR account.\n\n\n## Used libraries and services\n\nThe paper wallet sweeper is implemented as a SPA React application. Used libraries:\n\n- [near-api-js](https://github.com/near/near-api-js) - A JavaScript/TypeScript library for development of DApps on the NEAR platform\n- [react-st-modal](https://github.com/Nodlik/react-st-modal) - A simple and flexible library for implementing modal dialogs.\n- [react-qr-reader](https://github.com/JodusNodus/react-qr-reader) - A React component for reading QR codes from the webcam. \n\n\n## Installation\n\n```sh\ngit clone https://github.com/zh/near-paper-sweep\ncd near-paper-sweep\nyarn install\n```\n\n## Usage\n\nStart the application with\n\n```sh\nyarn start\n```\n\nYou can also build it as static HTML pages (for example from deploying on IPFS):\n\n```\nyarn build\n```\n\nOn visit to the front page a text box for the **receiver account** (will get it from the real wallet in the future) and a button to scan QR codes are available.\n\nClicking on **'Scan QR code'** will open QR reader modal dialog. Scan the **secret QR code** of your paper wallet. This will display wallet name and NEAR balance in it.\n\nPress **'Sweep'** to confirm or **'Close'** to cancel.\n\nFunds will be send to the account, provided on the main page.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fnear-paper-sweep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzh%2Fnear-paper-sweep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fnear-paper-sweep/lists"}