{"id":13458015,"url":"https://github.com/reforest/fungus","last_synced_at":"2025-03-24T14:33:05.251Z","repository":{"id":57352154,"uuid":"128569742","full_name":"reforest/fungus","owner":"reforest","description":"Client-side JavaScript SDK to read/write wallets and transactions to Lotion-based coin","archived":false,"fork":false,"pushed_at":"2018-04-09T03:26:07.000Z","size":516,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T03:32:16.361Z","etag":null,"topics":["blockchain","cosmos","lotionjs","mit-license","opensource","tendermint","transaction","wallets","web3"],"latest_commit_sha":null,"homepage":"","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/reforest.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":"2018-04-07T21:24:12.000Z","updated_at":"2021-12-28T20:42:56.000Z","dependencies_parsed_at":"2022-09-19T02:01:51.839Z","dependency_job_id":null,"html_url":"https://github.com/reforest/fungus","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/reforest%2Ffungus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reforest%2Ffungus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reforest%2Ffungus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reforest%2Ffungus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reforest","download_url":"https://codeload.github.com/reforest/fungus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289853,"owners_count":20591145,"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":["blockchain","cosmos","lotionjs","mit-license","opensource","tendermint","transaction","wallets","web3"],"created_at":"2024-07-31T09:00:42.451Z","updated_at":"2025-03-24T14:33:04.886Z","avatar_url":"https://github.com/reforest.png","language":"JavaScript","readme":"# fungus\n\nClient-side JavaScript SDK to read/write wallets and transactions to Basecoin\n\n![Stack Diagram](https://github.com/reforest/fungus/blob/master/images/Screen%20Shot%202018-04-08%20at%207.58.34%20PM.png?raw=true)\n\n## Usage\n\n```javascript\nimport Fungus from 'reforest-fungus';\nconst fungus = new Fungus({\n    lotionUrl: 'localhost:3000' // Ensure lotion is running on port 3000\n})\n\nconst privateKey = fungus.generatePrivateKey().toString('hex');\nconst address = fungus.createPublicKey(privateKey).toString('hex');\nlet balance; \n\nfungus.getBalance(address).then(b=\u003e{\n    balance = b;\n    console.log(balance);\n}).catch(err=\u003e{\n    console.error(err);\n})\n\n// save it savely somewhere, for example(bad)\nlocalStorage.setItem('privateKey', privateKey);\n\n```\n\n## API\n\n* generatePrivateKey\n* createPublicKey\n* getBalance\n* createTransaction\n* getAllTransactions\n\n## Running example\n\n```bash\nnpm run example\n```\n","funding_links":[],"categories":["Proejcts"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freforest%2Ffungus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freforest%2Ffungus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freforest%2Ffungus/lists"}