{"id":16112949,"url":"https://github.com/guilospanck/murray-rs","last_synced_at":"2025-08-08T01:16:28.726Z","repository":{"id":228238747,"uuid":"771116205","full_name":"Guilospanck/murray-rs","owner":"Guilospanck","description":"This powerful library enables developers to quickly incorporate bitcoin data and interactions within their applications.","archived":false,"fork":false,"pushed_at":"2024-03-17T19:44:20.000Z","size":156,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T13:03:35.523Z","etag":null,"topics":["bitcoin","lightning","murray"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/murray-rs","language":"Rust","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/Guilospanck.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}},"created_at":"2024-03-12T18:02:02.000Z","updated_at":"2024-03-21T09:14:15.000Z","dependencies_parsed_at":"2024-03-17T19:59:58.140Z","dependency_job_id":null,"html_url":"https://github.com/Guilospanck/murray-rs","commit_stats":null,"previous_names":["guilospanck/murray-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fmurray-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fmurray-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fmurray-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fmurray-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guilospanck","download_url":"https://codeload.github.com/Guilospanck/murray-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252666,"owners_count":21072699,"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":["bitcoin","lightning","murray"],"created_at":"2024-10-09T20:09:48.172Z","updated_at":"2025-04-13T22:43:13.111Z","avatar_url":"https://github.com/Guilospanck.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Murray-rs [![Tests](https://github.com/Guilospanck/murray-rs/actions/workflows/tests.yml/badge.svg?branch=main\u0026event=push)](https://github.com/Guilospanck/murray-rs/actions/workflows/tests.yml) [![codecov](https://codecov.io/gh/Guilospanck/murray-rs/graph/badge.svg?token=E87lAHhkfC)](https://codecov.io/gh/Guilospanck/murray-rs) [![crates.io](https://img.shields.io/crates/v/murray-rs.svg)](https://crates.io/crates/murray-rs) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n\nMurray-rs is the rust version of the comprehensive NPM package module designed for seamless integration with Murray Rothbot's suite of APIs, including Blockchain, Lightning, and Prices - [Murray JS](https://github.com/murray-rothbot/murray-js). This powerful library enables developers to quickly incorporate bitcoin data and interactions within their applications.\n\n## Installation\n\nTo get started, install the package using cargo:\n\n```bash\ncargo add murray-rs\n```\n\n## Usage\n\nAfter installation, import `murray-rs` into your project to access the various APIs.\n\n### Blockchain API\n\n```rs\nuse murray_rs::{GetBlockParams, Murray, BlockchainError};\n\nfn main() -\u003e std::result::Result\u003c(), BlockchainError\u003e {\n  let murray = Murray::default();\n\n  let a = murray.blockchain.get_block(GetBlockParams {\n    hash: None,\n    height: Some(500000),\n  })?;\n  println!(\"{:?}\", a);\n\n  Ok(())\n}\n```\n\n### Lightning API\n\n```rs\nuse murray_rs::{Murray, GetNodeDetailsParams, LightningError};\n\nfn main() -\u003e std::result::Result\u003c(), LightningError\u003e {\n  let murray = Murray::default();\n\n  let a = murray.lightning.get_node_details(GetNodeDetailsParams {\n    public_key: \"03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f\".to_string(),\n  })?;\n  println!(\"{:?}\", a);\n\n  Ok(())\n}\n```\n\n### Prices API\n\n```rs\nuse murray_rs::{Murray, ConvertCurrencyParams, Currency, PriceError};\n\nfn main() -\u003e std::result::Result\u003c(), PriceError\u003e {\n  let murray = Murray::default();\n\n  let a = murray.prices.convert_currency(ConvertCurrencyParams {\n    currency: Currency::BRL,\n    value: 100,\n  })?;\n  println!(\"{:?}\", a);\n\n  Ok(())\n}\n```\n\n## Custom Endpoints\n\nCustomize endpoints for each API to suit your specific needs:\n\n```rs\nuse murray_rs::{Murray, BaseEndpointsParams};\n\nfn main() {\n  let murray = Murray::new(BaseEndpointsParams {\n    blockchain_endpoint: Some(\"https://your-custom-domain.com/\".to_string()),\n    prices_endpoint: Some(\"https://your-custom-domain.com/\".to_string()),\n    lightning_endpoint: Some(\"https://your-custom-domain.com/\".to_string()),\n  });\n\n  let blockchain = murray.blockchain.get_health();\n  println!(\"{:?}\", blockchain.unwrap());\n  let prices = murray.prices.get_health();\n  println!(\"{:?}\", prices.unwrap());\n  let lightning = murray.lightning.get_health();\n  println!(\"{:?}\", lightning.unwrap());\n}\n```\n\n## Examples\n\nFind more examples in the repository to guide your implementation:\n\n- [Blockchain](./examples/blockchain.rs)\n- [Lightning](./examples/lightning.rs)\n- [Prices](./examples/prices.rs)\n\n## Self Hosted APIs\n\nLeverage your self-hosted APIs for enhanced control and customization:\n\n- [Service Blockchain](https://github.com/Murray-Rothbot/service-blockchain)\n- [Service Lightning](https://github.com/Murray-Rothbot/service-lightning)\n- [Service Prices](https://github.com/Murray-Rothbot/service-prices)\n\n## Contributing\n\nContributions are welcome! For significant changes or enhancements, please open an issue first to discuss your ideas.\n\n## License\n\nMurray-rs is open-sourced software licensed under the [MIT license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilospanck%2Fmurray-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilospanck%2Fmurray-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilospanck%2Fmurray-rs/lists"}