{"id":48860744,"url":"https://github.com/gerciljunio/cardano-decodes-wallet-api","last_synced_at":"2026-04-15T15:55:21.756Z","repository":{"id":57194373,"uuid":"451999452","full_name":"gerciljunio/cardano-decodes-wallet-api","owner":"gerciljunio","description":"Local server for decoding strings used in Cardano wallets based on CIP-0030.","archived":false,"fork":false,"pushed_at":"2022-01-25T21:12:55.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-15T15:55:20.511Z","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/gerciljunio.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":"2022-01-25T18:40:57.000Z","updated_at":"2023-01-24T18:40:54.000Z","dependencies_parsed_at":"2022-08-24T13:30:28.380Z","dependency_job_id":null,"html_url":"https://github.com/gerciljunio/cardano-decodes-wallet-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gerciljunio/cardano-decodes-wallet-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerciljunio%2Fcardano-decodes-wallet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerciljunio%2Fcardano-decodes-wallet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerciljunio%2Fcardano-decodes-wallet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerciljunio%2Fcardano-decodes-wallet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerciljunio","download_url":"https://codeload.github.com/gerciljunio/cardano-decodes-wallet-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerciljunio%2Fcardano-decodes-wallet-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31848664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":[],"created_at":"2026-04-15T15:55:20.897Z","updated_at":"2026-04-15T15:55:21.749Z","avatar_url":"https://github.com/gerciljunio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cardano Decodes Wallet API\n\n## Installation\n\nThis package works from the command line! So it is necessary to install globally via NPM.\n\n```bash\nnpm i -g cardano-decodes-wallet-api\n```\n\n## Use\n\nTo start the service I use [PM2](https://github.com/Unitech/pm2) but you can do it any way you need.\n\n```bash\npm2 start cardano-decodes-wallet-api\n```\n\nYou may want to set the port where the service will start.  \n**By default it starts on port 4002**.\n\n```bash\npm2 start cardano-decodes-wallet-api -- --port 4004\n```\n\nOtherwise you can start the service however you like by running command:\n\n```bash\ncardano-decodes-wallet-api\n```\n\nOr defining a port:\n```bash\ncardano-decodes-wallet-api --port 4004\n```\n\n## Endpoints\n\nReturn balance through data collected in wallet.getBalance method from wallets compatible with [CIP-0030](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030).\n\n```js\n/decodes/balance/code_from_wallet_getBalance\n```\n\nResponse\n\n```js\n{\n    \"locked\": {\n        \"decimal\": 1.48148,\n        \"lovelace\": 1481480\n    },\n    \"total\": {\n        \"decimal\": 7.017871,\n        \"lovelace\": 7017871\n    },\n    \"total_free\": {\n        \"decimal\": 5.536391,\n        \"lovelace\": 5536391\n    }\n}\n```\n\nReturn all NFTs through data collected in wallet.getBalance method from [CIP-0030](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030) compliant wallets.\n\n```js\n/decodes/nfts/code_from_wallet_getBalance\n```\n\nResponse\n\n```js\n{\n    \"data\": [{\n        \"token\": \"aec5a6dac10ec781df9f337d33ef7d55b9b48535668b8038affa326c4c696c476f61743036343236\",\n        \"asset_hex\": \"4c696c476f61743036343236\",\n        \"asset_name\": \"LilGoat06426\",\n        \"policy_id\": \"aec5a6dac10ec781df9f337d33ef7d55b9b48535668b8038affa326c\",\n        \"qty\": 1\n    }],\n    \"total\": 1\n}\n```\n\nReturn all human-readable addresses through data collected in wallet.getUsedAddresses, wallet.getUnusedAddresses, wallet.getChangeAddress, wallet.getRewardAddresses methods of [CIP-0030](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030) compliant wallets.\n\n```js\n/decodes/address/code_from_wallet\n```\n\nResponse Address\n\n```js\n[\n    \"addr_test1qphl6y5cgjq4tquv9kngd959z9hexze7vlcrg504aql7dh47ec4mkh9pe4f33rhgtp7twaufavmza8ju7dwl9y5zm3yq28cxvn\"\n]\n```\n\nResponse Stake Adress\n\n```js\n[\n    \"stake1uxjq7qun5w4dk79a49s04ker42d486j4zmqhl8hzk46a88ctdjwc7\"\n]\n```\n\nSearch for NFTs through data collected in the wallet.getBalance method of wallets compatible with [CIP-0030](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030).\n\nTYPE: all columns that can be fetched\n - token\n - asset_hex\n - asset_name\n - policy_id\n\nQUERY: data to fetch, if TYPE is policy_id, then query is the policyID to find.\n\n```js\n/decodes/nfts/search/QUERY/TYPE/code_from_wallet_getBalance\n```\n\nIn QUERY when used an @ before the word it searches for any part of an item, similar to what SQL LIKE does.\n\n```js\n/decodes/nfts/search/@QUERY/TYPE/code_from_wallet_getBalance\n```\n\n\u003e I recommend and, if necessary, that the **index.js** file be analyzed for a better understanding.\n\n## Attention\n\nIf you are going to use this package in production, consider using it as a local service and being consumed internally by an application.\n\n## Contributing\n\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n\n## MIT License\n\nCopyright (c) 2022 Gercil Junio\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerciljunio%2Fcardano-decodes-wallet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerciljunio%2Fcardano-decodes-wallet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerciljunio%2Fcardano-decodes-wallet-api/lists"}