{"id":16935542,"url":"https://github.com/bvolpato/opennode-java","last_synced_at":"2025-07-10T22:16:04.600Z","repository":{"id":53575248,"uuid":"173492511","full_name":"bvolpato/opennode-java","owner":"bvolpato","description":":zap: OpenNode.co Java Client ","archived":false,"fork":false,"pushed_at":"2023-10-15T22:43:28.000Z","size":28,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:51:15.807Z","etag":null,"topics":["bitcoin","lightning","lnd","opennode","payments"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bvolpato.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,"publiccode":null,"codemeta":null}},"created_at":"2019-03-02T19:54:44.000Z","updated_at":"2023-10-15T22:43:33.000Z","dependencies_parsed_at":"2023-10-16T13:56:29.694Z","dependency_job_id":null,"html_url":"https://github.com/bvolpato/opennode-java","commit_stats":null,"previous_names":["brunocvcunha/opennode-java"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvolpato%2Fopennode-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvolpato%2Fopennode-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvolpato%2Fopennode-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvolpato%2Fopennode-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvolpato","download_url":"https://codeload.github.com/bvolpato/opennode-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464727,"owners_count":21108238,"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","lnd","opennode","payments"],"created_at":"2024-10-13T20:54:47.682Z","updated_at":"2025-04-11T18:54:15.370Z","avatar_url":"https://github.com/bvolpato.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"opennode-java\n========\n\n[![Apache License](http://img.shields.io/badge/license-ASL-blue.svg)](https://github.com/brunocvcunha/opennode-java/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/brunocvcunha/opennode-java.svg)](https://travis-ci.org/brunocvcunha/opennode-java)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.brunocvcunha.opennode-java/opennode-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.brunocvcunha.opennode-java/opennode-java)\n[![Coverage Status](https://coveralls.io/repos/github/brunocvcunha/opennode-java/badge.svg?branch=master)](https://coveralls.io/github/brunocvcunha/opennode-java?branch=master)\n\n:zap: OpenNode.co Java Client.\n\nDownload\n--------\n\nDownload [the latest JAR][1] or grab via Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.brunocvcunha.opennode-java\u003c/groupId\u003e\n  \u003cartifactId\u003eopennode-java\u003c/artifactId\u003e\n  \u003cversion\u003e1.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'org.brunocvcunha.opennode-java:opennode-java:1.3'\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\nSupported Operations \u0026 Examples\n--------\n\n#### Create the Client\n\n```java\n        OpenNodeService service = OpenNodeServiceFactory.buildClient(\"{api_token}\");\n```\n\n\n#### Create a Charge\n\n\n```java\n        OpenNodeCreateCharge createCharge = OpenNodeCreateCharge.builder()\n                .orderId(\"ABCDEF-100\")\n                .description(\"OpenNode Java Client\")\n                .amount(1)\n                .currency(OpenNodeCurrency.USD) // default is satoshis\n                .build();\n        \n        OpenNodeCharge createdCharge = service.createCharge(createCharge).execute().body().getData();\n        System.out.println(\"Created charge with ID: \" + createdCharge.getId() + \". Invoice: \" + createdCharge.getLightningInvoice().getPayreq());\n```\n\n#### Get a Charge by ID\n\n\n```java\n    OpenNodeCharge charge = service.getCharge(\"{charge_id\"}).execute().body().getData();\n    System.out.println(charge.getDescription() + \" - \" + charge.getAmount() + \" - \" + charge.getStatus());\n```\n\n\n#### List Charges\n\n\n```java\n    OpenNodeResponse\u003cList\u003cOpenNodeCharge\u003e\u003e charges = service.listCharges().execute().body();\n    for (OpenNodeCharge charge : charges.getData()) {\n        System.out.println(charge.getDescription() + \" - \" + charge.getAmount() + \" - \" + charge.getStatus());\n    }\n```\n\n\n\nWant to tip a few satoshis? [tippin.me/@bruflow](https://tippin.me/@bruflow)\n\nopennode-java requires at minimum Java 8.\n\n [1]: https://search.maven.org/remote_content?g=org.brunocvcunha.opennode-java\u0026a=opennode-java\u0026v=LATEST\n [snap]: https://oss.sonatype.org/content/repositories/snapshots/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvolpato%2Fopennode-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvolpato%2Fopennode-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvolpato%2Fopennode-java/lists"}