{"id":24755204,"url":"https://github.com/ranjbar-dev/litecoin-wallet","last_synced_at":"2025-06-12T08:32:54.113Z","repository":{"id":64300600,"uuid":"571607892","full_name":"ranjbar-dev/litecoin-wallet","owner":"ranjbar-dev","description":"litecoin wallet package for creating and generating wallet, transferring LTC, getting wallet unspent transactions(UTXOs), getting wallet txs , getting wallet balance and crawling blocks to find wallet transactions","archived":false,"fork":false,"pushed_at":"2022-12-04T14:47:57.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T06:13:45.104Z","etag":null,"topics":["address","litecoin","ltc","sign","transaction","wallet"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ranjbar-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-28T13:54:56.000Z","updated_at":"2024-04-29T22:02:45.000Z","dependencies_parsed_at":"2023-01-15T09:15:53.201Z","dependency_job_id":null,"html_url":"https://github.com/ranjbar-dev/litecoin-wallet","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ranjbar-dev/litecoin-wallet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Flitecoin-wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Flitecoin-wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Flitecoin-wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Flitecoin-wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranjbar-dev","download_url":"https://codeload.github.com/ranjbar-dev/litecoin-wallet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Flitecoin-wallet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259429895,"owners_count":22856141,"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":["address","litecoin","ltc","sign","transaction","wallet"],"created_at":"2025-01-28T12:37:21.923Z","updated_at":"2025-06-12T08:32:54.088Z","avatar_url":"https://github.com/ranjbar-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# litecoin-wallet\nlitecoin wallet package for creating and generating wallet, transferring LTC, getting wallet unspent transactions(UTXOs), getting wallet txs , getting wallet balance and crawling blocks to find wallet transactions\n \n ### Installation \n```\ngo get github.com/ranjbar-dev/litecoin-wallet@v1.0.6\n```\n\n### Supported nodes\ncheck `enums/nodes` file  \n\n### Wallet methods\n\nGenerating litecoin wallet\n```\nw := GenerateLitecoinWallet(node)\nw.Address // strnig \nw.PrivateKey // strnig \nw.PublicKey // strnig \n```\n\nCreating litecoin wallet from private key\n```\nw := CreateLitecoinnWallet(node,privateKeyHex)\nw.Address // strnig \nw.PrivateKey // strnig \nw.PublicKey // strnig \n```\n\nGetting wallet litecoin balance\n```\nbalanceInSatoshi,err := w.Balance()\nbalanceInSatoshi // int64\n```\n\nGetting wallet UTXOs\n```\nutxos,err := w.UTXOs()\nutxos // []response.UTXO\n```\n\nGetting wallet transactions\n```\ntxs,err := w.Txs()\ntxs // []response.Transaction\n```\n\ncrawl blocks for addresses transactions\n```\n\nc := \u0026Crawler{\n\t\tNode: node, \n\t\tAddresses: []string{\n\t\t\t\"tb1qppv790u4dz48ctnk3p7ss7fmspckagp3wrfyp0\", // list of your addresses\n\t\t},\n\t}\n\t\nres, err := c.ScanBlocks(40) // scan latest 40 block on block chain and extract addressess transactions \n\nExample \n// *\n{\n    {\n        \"address\": \"tb1qppv790u4dz48ctnk3p7ss7fmspckagp3wrfyp0\",\n        \"tranasctions\": {\n            {\n                \"tx_id\": \"e6160c52401949139688623ce33a6290eed43d8d564d6e16c38006c4dc28f4a8\",\n                \"from_address\": \"tb1qppv790u4dz48ctnk3p7ss7fmspckagp3wrfyp0\",\n                \"to_address\": \"tb1q0r23g66m9rhhak8aahsg53wfp5egt2huuc4tnu\",\n                \"amount\": 100000,\n                \"confirmations\": 2,\n            }\n        }\n    },\n    ...\n}\n* // \n\t\n```\n\nEstimate transfer ltc fee\n```\nfeeInLitoshi,err := w.EstimateTransferFee(\"tb1q0r23g66m9rhhak8aahsg53wfp5egt2huuc4tnu\",10000)\nfeeInLitoshi // int64\n```\n\nTransfer ltc\n```\ntxId,err := w.Transfer(\"tb1q0r23g66m9rhhak8aahsg53wfp5egt2huuc4tnu\",10000)\ntxId // string\n```\n\n### LTC Faucet\ncheck this website https://testnet-faucet.com/ltc-testnet/\n\n### Provider \nsign up and create free account at https://blockdaemon.com and use your own node  \n```\nconfig = ConfigBlockDaemon{\n\t\tProtocol: \"litecoin\",\n\t\tNetwork:  \"mainnet\",\n\t\tToken:    \"your token here\",\n}\nnode := Node{\n\t\tConfig: config,\n\t\tTest:   false, // or true if you want to use testnet network\n\t}\n```\n### Important\nI simplified this repository github.com/ltcsuite/ltcd repository to create this package You can check go it for better examples and functionalities and do not use this package in production, I created this package for education purposes.\n\n\n### Donation\nAddress `ltc1q5m8nzek2459kvqvnmshhluc56lgl0mjyc8p3dc`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjbar-dev%2Flitecoin-wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franjbar-dev%2Flitecoin-wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjbar-dev%2Flitecoin-wallet/lists"}