{"id":38786634,"url":"https://github.com/kryptokrona/kryptokrona-wallet-backend-js","last_synced_at":"2026-01-17T12:34:29.705Z","repository":{"id":39741698,"uuid":"245434649","full_name":"kryptokrona/kryptokrona-wallet-backend-js","owner":"kryptokrona","description":"Kryptokrona library in JS/TS for building decentralized private communication and payment systems.","archived":false,"fork":false,"pushed_at":"2025-03-01T18:55:59.000Z","size":2600,"stargazers_count":2,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T19:36:59.123Z","etag":null,"topics":["blockchain","crypto","cryptocurrency","cryptography","decentralized","distributed-systems","javascript","kryptokrona","nodejs","typescript","web3","xkr"],"latest_commit_sha":null,"homepage":"https://kryptokrona.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kryptokrona.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":"2020-03-06T14:03:11.000Z","updated_at":"2025-03-01T18:56:03.000Z","dependencies_parsed_at":"2024-12-15T00:18:39.900Z","dependency_job_id":"a831b1fe-053a-44e3-8571-72f4fb657cd3","html_url":"https://github.com/kryptokrona/kryptokrona-wallet-backend-js","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/kryptokrona/kryptokrona-wallet-backend-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kryptokrona%2Fkryptokrona-wallet-backend-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kryptokrona%2Fkryptokrona-wallet-backend-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kryptokrona%2Fkryptokrona-wallet-backend-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kryptokrona%2Fkryptokrona-wallet-backend-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kryptokrona","download_url":"https://codeload.github.com/kryptokrona/kryptokrona-wallet-backend-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kryptokrona%2Fkryptokrona-wallet-backend-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["blockchain","crypto","cryptocurrency","cryptography","decentralized","distributed-systems","javascript","kryptokrona","nodejs","typescript","web3","xkr"],"created_at":"2026-01-17T12:34:29.626Z","updated_at":"2026-01-17T12:34:29.687Z","avatar_url":"https://github.com/kryptokrona.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://camo.githubusercontent.com/d344c9e18b69f96502f3bf61b0dedc1ca9603af3/68747470733a2f2f6b727970746f6b726f6e612e73652f77702d636f6e74656e742f75706c6f6164732f323031392f30372f786b722d6c6f676f2d626c61636b2d746578742e706e67)\n\n#### Master Build Status\n[![Build Status](https://travis-ci.org/turtlecoin/turtlecoin-wallet-backend-js.svg?branch=master)](https://travis-ci.org/turtlecoin/turtlecoin-wallet-backend-js)\n\n#### NPM\nhttps://www.npmjs.com/package/kryptokrona-wallet-backend-js\n\n#### Github\n\nhttps://github.com/kryptokrona/kryptokrona-wallet-backend-js\n\n# Kryptokrona-wallet-backend\n\nProvides an interface to the Kryptokrona network, allowing wallet applications to be built.\n\n* Downloads blocks from the network, either through a traditional daemon, or a blockchain cache for increased speed\n* Processes blocks, decrypting transactions that belong to the user\n* Sends and receives transactions\n\n## Installation\n\nNPM:\n\n`npm install kryptokrona-wallet-backend-js --save`\n\nYarn:\n\n`yarn add kryptokrona-wallet-backend-js`\n\n## Documentation\n\n[You can view the documentation here](https://github.com/kryptokrona/kryptokrona-wallet-backend-js/blob/master/docs/classes/_walletbackend_.walletbackend.html)\n\nYou can see a list of all the other classes on the right side of the screen.\nNote that you will need to prefix them all with `WB.` to access them, if you are not using typescript style imports, assuming you imported with `const WB = require('kryptokrona-wallet-backend-js')`.\n\n\n### Javascript\n\n```javascript\nconst WB = require('kryptokrona-wallet-backend-js');\n\n(async () =\u003e {\n    const daemon = new WB.Daemon('127.0.0.1', 11898);\n    \n    const wallet = WB.WalletBackend.createWallet(daemon);\n\n    console.log('Created wallet');\n\n    await wallet.start();\n\n    console.log('Started wallet');\n\n    wallet.saveWalletToFile('mywallet.wallet', 'hunter2');\n\n    /* Make sure to call stop to let the node process exit */\n    wallet.stop();\n})().catch(err =\u003e {\n    console.log('Caught promise rejection: ' + err);\n});\n```\n\n### Typescript\n\n```typescript\nimport { WalletBackend, Daemon } from 'kryptokrona-wallet-backend-js';\n\n(async () =\u003e {\n    const daemon: Daemon = new Daemon('127.0.0.1', 11898);\n\n    const wallet: WalletBackend = await WalletBackend.createWallet(daemon);\n\n    console.log('Created wallet');\n\n    await wallet.start();\n\n    console.log('Started wallet');\n\n    wallet.saveWalletToFile('mywallet.wallet', 'hunter2');\n\n    /* Make sure to call stop to let the node process exit */\n    wallet.stop();\n})().catch(err =\u003e {\n    console.log('Caught promise rejection: ' + err);\n});\n```\n\n## Configuration\n\nThere are a few features which you may wish to configure that are worth mentioning.\n\n### Auto Optimize\n\nAuto optimization is enabled by default. This makes the wallet automatically send fusion transactions when needed to keep the wallet permanently optimized.\n\nTo enable/disable this feature, use the following code:\n\n```javascript\nwallet.enableAutoOptimization(false); // disables auto optimization\n```\n\n### Coinbase Transaction Scanning\n\nBy default, coinbase transactions are not scanned.\nThis is due to the majority of people not having solo mined any blocks.\n\nIf you wish to enable coinbase transaction scanning, run this line of code:\n\n```javascript\nwallet.scanCoinbaseTransactions(true)\n```\n\n### Logging\n\nBy default, the logger is disabled. You can enable it like so:\n\n```javascript\nwallet.setLogLevel(WB.LogLevel.DEBUG);\n```\n\nand in typescript:\n\n```typescript\nwallet.setLogLevel(LogLevel.DEBUG);\n```\n\nThe logger uses console.log, i.e. it outputs to stdout.\n\nIf you want to change this, or want more control over what messages are logged,\nyou can provide a callback for the logger to call.\n\n```javascript\nwallet.setLoggerCallback((prettyMessage, message, level, categories) =\u003e {\n    if (categories.includes(WB.LogCategory.SYNC)) {\n        console.log(prettyMessage);\n    }\n});\n```\n\nand in typescript:\n\n```typescript\nwallet.setLoggerCallback((prettyMessage, message, level, categories) =\u003e {\n    if (categories.includes(LogCategory.SYNC)) {\n        console.log(prettyMessage);\n    }\n});\n```\n\nIn this example, we only print messages that fall into the SYNC category.\n\nYou can view available categories and log levels in the documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptokrona%2Fkryptokrona-wallet-backend-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkryptokrona%2Fkryptokrona-wallet-backend-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptokrona%2Fkryptokrona-wallet-backend-js/lists"}