{"id":16795636,"url":"https://github.com/instafluff/dogecoinjs","last_synced_at":"2025-07-10T05:33:57.280Z","repository":{"id":57214469,"uuid":"342333262","full_name":"instafluff/DogecoinJS","owner":"instafluff","description":"Very code.","archived":false,"fork":false,"pushed_at":"2021-02-26T18:24:50.000Z","size":81,"stargazers_count":31,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-18T06:51:30.612Z","etag":null,"topics":["doge","dogecoin","javascript","js"],"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/instafluff.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":"2021-02-25T18:00:23.000Z","updated_at":"2024-12-07T23:30:03.000Z","dependencies_parsed_at":"2022-08-26T13:41:17.049Z","dependency_job_id":null,"html_url":"https://github.com/instafluff/DogecoinJS","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/instafluff%2FDogecoinJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instafluff%2FDogecoinJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instafluff%2FDogecoinJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instafluff%2FDogecoinJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instafluff","download_url":"https://codeload.github.com/instafluff/DogecoinJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893382,"owners_count":20527583,"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":["doge","dogecoin","javascript","js"],"created_at":"2024-10-13T09:16:56.527Z","updated_at":"2025-03-22T01:30:58.144Z","avatar_url":"https://github.com/instafluff.png","language":"JavaScript","funding_links":["https://github.com/sponsors/instafluff"],"categories":[],"sub_categories":[],"readme":"# DogecoinJS\n![npm](https://img.shields.io/npm/v/dogecoinjs?style=flat-square) ![GitHub](https://img.shields.io/github/license/instafluff/dogecoinjs?style=flat-square) [![](https://data.jsdelivr.com/v1/package/npm/dogecoinjs/badge)](https://www.jsdelivr.com/package/npm/dogecoinjs)\n\n**DogecoinJS** The Goodest Way to get Dogecoin info and events for the Web and NodeJS!\n\n# DogecoinJS\nWe built this Dogecoin javascript library live on Twitch for the Comfy Corner!\n\n## How To Use ##\n\n#### Node\n1. Install `dogecoinjs`\n```bash\nnpm install dogecoinjs --save\n```\n\n2. Use DogecoinJS\n```javascript\nvar Dogecoin = require( \"dogecoinjs\" );\nDogecoin.lookup( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( wallet ) =\u003e {\n  console.log( wallet );\n} );\nDogecoin.listen( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( address, amount, extra ) =\u003e {\n  console.log( \"Wallet balance update!\", address, amount, extra );\n});\n```\n\n3. More code examples in [example.js](example.js)\n\n#### Browser\n1. Download and add `dogecoinjs` from the `public` folder or include from the JSDelivr CDN:\n```javascript\n\u003cscript src=\"dogecoin.min.js\"\u003e\u003c/script\u003e\n```\nOR\n```javascript\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/dogecoinjs@latest/public/dogecoin.min.js\"\u003e\u003c/script\u003e\n```\n\n2. Use DogecoinJS\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/dogecoinjs@latest/public/dogecoin.min.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cscript type=\"text/javascript\"\u003e\n      Dogecoin.lookup( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( wallet ) =\u003e {\n        console.log( wallet );\n      } );\n      Dogecoin.listen( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( address, amount, extra ) =\u003e {\n        console.log( \"Wallet balance update!\", address, amount, extra );\n      });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n3. More code examples in [example.html](public/example.html)\n\n## Looking Up Dogecoin Wallets\n\nYou can lookup the balance of any dogecoin wallet by passing an address and a handler:\n```javascript\nDogecoin.lookup( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( wallet ) =\u003e {\n  console.log( wallet );\n} );\n```\n\nOr by using async/await and getting the wallet info returned:\n```javascript\nlet wallet = await Dogecoin.lookup( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\" );\nconsole.log( wallet );\n```\n\n## Getting a Dogecoin Wallet QR Code\n\nGet the QR Code image of any dogecoin wallet by passing an address and a handler:\n```javascript\nDogecoin.qrcode( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( data ) =\u003e {\n  var image = document.getElementById( \"qrcode\" );\n  image.src = URL.createObjectURL( data );\n} );\n```\n\nOr by using async/await and getting the wallet QR code returned:\n```javascript\nlet qrcode = await Dogecoin.qrcode( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\" );\nvar image = document.getElementById( \"qrcode\" );\nimage.src = URL.createObjectURL( qrcode );\n```\n\n## Listening to a Dogecoin Wallet\n\nGet notified of changes to a wallet balance in real-time:\n```javascript\nDogecoin.listen( \"DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\", ( address, amount, extra ) =\u003e {\n  console.log( \"Wallet balance update!\", address, amount, extra );\n});\n```\n\n## Instafluff ##\n\u003e *Like these projects? The best way to support my open-source projects is by becoming a Comfy Sponsor on GitHub!*\n\n\u003e https://github.com/sponsors/instafluff\n\n\u003e *Come and hang out with us at the Comfiest Corner on Twitch!*\n\n\u003e https://twitch.tv/instafluff\n\n\u003e *Such coin. Much thanks!*\n\n\u003e DPsvmxqaJV15nqVnT9BiwYskVmQLozRKht\n\n## Credits ##\nDogecoin blockchain data is available thanks to [DogeChain](https://dogechain.info/)!\n\nThank you to everyone who joined in during the creation of this project!\n\n**LilyHazel, Instafriend, Instafluff, DevMerlin, aries4174599, That_MS_Gamer, generalgooglelos, aRandomTim, simrosie4u, Eclipse_Arc, Floydan, m_a_t_t_y___, mikenatsu24, venusslipper, theArtifacts, YourFriendTyler33, MisigaSan, ShadowNeverSeen, aisu_kurimu, durian_gray, d3m1g0d__, KanawanagasakiYoko, Masaki_tty, N3m1sys, DFluxk, nolanpfeiffersaiyan, iknowandidrinkthings, mrpotatodice, Shpoopdy, RafaelPaul, saramara79, lilsafbig, DutchGamer46, AnnaCodes, RiccaRomano, stabbykirby, JupiterZky, allie__, sparky_pugwash, Here_for_the_life_lessons, sethorizer, GanaXE, DvDty, GhosT_TanK83, Gawhisper, Wietlol, MerlinLeWizard, JamesMontemagno, Alca, one1lion, pathaan, hugthedumdum, TofuLock, definiteoptimist, Roxkstar74, Taugeshtu, Mheetu, ricardosexyboyy06, InSanityParty, nopogo_tv, eno_dev, AntiPixelated, hadouken11, seasidesandies, calhartill, NamasteGeek, Alphena, ShiDotMoe, Loganshogun, FuriousFur, Froggo1214, Hot_Zoomy, youcantescapefromme2, Ellenary, TheDankOreo, InvaderWaffles, churzaki, Longttran, DreamGardenPanda, Yuukez, holloway87**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstafluff%2Fdogecoinjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstafluff%2Fdogecoinjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstafluff%2Fdogecoinjs/lists"}