{"id":18558010,"url":"https://github.com/zh/near-paper-web","last_synced_at":"2025-05-15T14:30:52.836Z","repository":{"id":66384512,"uuid":"371070714","full_name":"zh/near-paper-web","owner":"zh","description":"NEAR Paper wallets generator","archived":false,"fork":false,"pushed_at":"2021-05-28T12:34:36.000Z","size":252,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T11:44:35.574Z","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-26T14:50:24.000Z","updated_at":"2024-05-06T15:56:12.000Z","dependencies_parsed_at":"2023-02-24T22:46:01.987Z","dependency_job_id":null,"html_url":"https://github.com/zh/near-paper-web","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-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fnear-paper-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fnear-paper-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fnear-paper-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zh","download_url":"https://codeload.github.com/zh/near-paper-web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254358545,"owners_count":22057938,"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.426Z","updated_at":"2025-05-15T14:30:52.805Z","avatar_url":"https://github.com/zh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NEAR paper wallets generator\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\nIn case of NEAR blockchain **account name** for the wallet also need to be provided. Something as *paper-xxx.somebody.testnet*, where *somebody.testnet* is the parent account, which will create and initially fund the wallet.\n\n\n## Used libraries and services\n\nThe paper wallet generator 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- [qrcode.react](https://github.com/zpao/qrcode.react) - A React component to generate QR codes\n\n\n## Installation\n\n```sh\ngit clone https://github.com/zh/near-paper-web\ncd near-paper-web\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, login is required. Clicking on the **'Log in'** button in the top left corner will redirect you to your NEAR web wallet for approval.\n\nAfter successful login the table with account name and balance will be visible.\n\nAnother table with created until now paper wallets (will be empty on the first visit) is also available.\n\nClicking on the **'Create new'** button will open modal dialog, asking for initial amount of NEAR to fund the paper walllet. **Creating new wallet require approval via NEAR web wallet.**\n\nClicking on the **'Show'** button will show a dialog with two QR codes:\n\n- **PUBLIC** - for public access, similar to the **'Receive'** QR code in your NEAR wallet. The format of the encoded URL is: *https://wallet.testnet.near.org/send-money/${paperId}*. With this QR code you can always add new funds to the paper wallet.\n- **SECRET** - for private access. Some sweep (get funds) functionallity need to be added to the existing wallets to use this one. Format of the code is: *${paperId}:${privateKey}*\n\nThere is also **'Print'** button is this dialog for printing the paper wallet.\n\nFor now sweeping is impossible in the NEAR wallet, so clicking on the **'Sweep'** button will allow you to get the funds back or send them to somebody else. **Sweeping require approval via NEAR wallet.**\n\nUntil the sweeping in implemented in some real wallet, you can use the\n[simple stand-alone sweeper application](https://github.com/zh/near-paper-sweep)\nto get the funds from some paper wllet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fnear-paper-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzh%2Fnear-paper-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fnear-paper-web/lists"}