{"id":37026852,"url":"https://github.com/chainworld/java-bytom","last_synced_at":"2026-01-14T03:10:22.213Z","repository":{"id":57731533,"uuid":"132576578","full_name":"chainworld/java-bytom","owner":"chainworld","description":"Bytom Java SDK","archived":false,"fork":false,"pushed_at":"2018-07-24T06:09:44.000Z","size":1976,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-09T09:22:12.693Z","etag":null,"topics":["blockchain","bytom","java","sdk"],"latest_commit_sha":null,"homepage":"https://bytom.io/","language":"JavaScript","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/chainworld.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":"2018-05-08T08:14:05.000Z","updated_at":"2019-11-04T03:48:51.000Z","dependencies_parsed_at":"2022-09-07T19:41:08.613Z","dependency_job_id":null,"html_url":"https://github.com/chainworld/java-bytom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chainworld/java-bytom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainworld%2Fjava-bytom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainworld%2Fjava-bytom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainworld%2Fjava-bytom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainworld%2Fjava-bytom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainworld","download_url":"https://codeload.github.com/chainworld/java-bytom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainworld%2Fjava-bytom/sbom","scorecard":{"id":273092,"data":{"date":"2025-08-11","repo":{"name":"github.com/chainworld/java-bytom","commit":"4c8577da66681028269d3be61c97bbd316cbe5fa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4jrv-ppp4-jm57","Warn: Project is vulnerable to: GHSA-3832-9276-x7gf","Warn: Project is vulnerable to: GHSA-2qrg-x229-3v8q","Warn: Project is vulnerable to: GHSA-65fg-84f6-3jq3","Warn: Project is vulnerable to: GHSA-f7vh-qwp3-x37m","Warn: Project is vulnerable to: GHSA-fp5r-v3w9-4333","Warn: Project is vulnerable to: GHSA-w9p3-5cr8-m3jj","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T13:51:30.783Z","repository_id":57731533,"created_at":"2025-08-17T13:51:30.783Z","updated_at":"2025-08-17T13:51:30.783Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blockchain","bytom","java","sdk"],"created_at":"2026-01-14T03:10:21.520Z","updated_at":"2026-01-14T03:10:22.208Z","avatar_url":"https://github.com/chainworld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bytom Java SDK\r\n\r\nThis SDK contains methods for easily interacting with the Bytom API.\r\nBelow are examples to get you started. For more information, please see Bytom API reference\r\ndocumentation at https://github.com/Bytom/bytom/wiki\r\n\r\n[![Latest Version](https://img.shields.io/badge/releases-v1.0.1-brightgreen.svg)](https://github.com/lxlxw/bytom-php-sdk/releases)\r\n[![Total Downloads](https://img.shields.io/badge/packagist-v1.0.1-orange.svg)](https://packagist.org/packages/lxlxw/bytom-php-sdk)\r\n\r\n## Table of Contents\r\n- [Installation](#installation)\r\n    - [Maven](#maven)\r\n    - [Building from source code](#building-from-source-code)\r\n- [5-Minute Guide](#5-minute-guide)\r\n    - [Initialize the SDK](#initialize-the-sdk) \r\n    - [Create Keys](#create-keys)\r\n    - [Create an Asset](#create-an-asset)\r\n    - [Create an Account](#create-an-account)\r\n    - [Create an Account Address](#create-an-account-address)\r\n    - [Build the Transaction](#build-the-transaction)\r\n    - [Sign the Transaction](#sign-the-transaction)\r\n    - [Submit the Transaction](#submit-the-transaction)\r\n    - [All usage examples](#all-usage-examples)\r\n- [Support and Feedback](#support-and-feedback)\r\n- [License](#license)\r\n\r\n\r\n## Installation\r\n\r\nThere are various ways to install and use this sdk. We'll elaborate on a couple here. Note that the Bytom JAVA SDK requires JAVA 7 or newer.\r\n\r\n### Maven\r\n```\r\n\u003cdependency\u003e\r\n  \u003cgroupId\u003eio.bytom\u003c/groupId\u003e\r\n  \u003cartifactId\u003ebytom-sdk-java\u003c/artifactId\u003e\r\n  \u003cversion\u003e1.0.2\u003c/version\u003e\r\n\u003c/dependency\u003e\r\n```\r\n\r\n\r\n### Building from source code\r\n\r\nTo clone, compile, and install in your local maven repository (or copy the artifacts from the target/ directory to wherever you need them):\r\n```bash\r\ngit clone git@github.com:chainworld/java-bytom.git\r\ncd java-bytom\r\nmvn install\r\n```\r\n\r\n## 5-Minute Guide\r\n\r\nThis guide will walk you through the basic functions of Bytom:\r\n\r\n### Initialize the SDK\r\nCreate an instance of the SDK. By default, the SDK will try to access a core located at http://127.0.0.1:9888, which is the default if you’re running Bytom Wallet locally.\r\n\r\n```java\r\n\r\npublic static Client generateClient() throws BytomException {\r\n\tString coreURL = Configuration.getValue(\"bytom.api.url\");\r\n\tString accessToken = Configuration.getValue(\"client.access.token\");\r\n\tif (coreURL == null || coreURL.isEmpty()) {\r\n\t\tcoreURL = \"http://127.0.0.1:9888/\";\r\n\t}\r\n\treturn new Client(coreURL, accessToken);\r\n}\r\n```\r\n\r\n### Create Keys\r\n\r\n```java\r\nKey key = Key.create(client, \"alias\", \"password\");\r\n```\r\nIt will create a key whose alias is 'alias' while password is 'password'.\r\n\r\n\r\n### Create an Asset\r\nCreate a new asset, providing an alias, key, and quorum. \r\n\r\n```java\r\nString asset = \"GOLD\";\r\nAsset testAsset = new Asset.Builder()\r\n\t\t      .setAlias(asset)\r\n\t\t      .addRootXpub(key.xpub)\r\n\t\t      .setQuorum(1)\r\n\t\t      .create(client);\r\n```\r\n\r\n### Create an Account\r\nCreate an account, providing an alias, key, and quorum.\r\n\r\n```java\r\nAccount account = new Account.Builder()\r\n\t\t      .setAlias(\"alice\")\r\n\t\t      .addXpub(key.xpub)\r\n\t\t      .setQuorum(1)\r\n\t\t      .create(client);\r\n```\r\n\r\n### Create an Account Address\r\n \r\n```java\r\nnew Account.ReceiverBuilder()\r\n   .setAccountId(account.id)\r\n   .create(client);\r\n```\r\n\r\n### Build the Transaction\r\n \r\n```java\r\nTransaction.Template controlAddressTx = new Transaction.Builder()\r\n\t\t\t.addAction(new Transaction.Action.SpendFromAccount()\r\n\t\t\t\t\t.setAccountId(account.id)\r\n\t\t\t\t\t.setAssetId(asset.id)\r\n\t\t\t\t\t.setAmount(300000000))\r\n\t\t\t.addAction(new Transaction.Action.ControlWithAddress()\r\n\t\t\t\t\t.setAddress(address.id)\r\n\t\t\t\t\t.setAssetId(asset.id)\r\n\t\t\t\t\t.setAmount(200000000))\r\n\t\t\t\t\t.build(client);\r\n```\r\n### Sign the Transaction\r\n```java\r\nTransaction.Template singerTx = new Transaction.SignerBuilder()\r\n                                   .sign(client,controlAddressTx, \"password\");\r\n```\r\n### Submit the Transaction\r\n```java\r\nTransaction.submit(client, singerTx); \r\n```\r\n\r\n### All usage examples\r\n\r\nYou find more detailed documentation at [/doc](doc/index.md). \r\nAlso you can find Test Cases at [Junit Test Cases](/src/test/java/io/bytom/integration)\r\n\r\n\r\n## Support and Feedback\r\n\r\nIf you find a bug, please submit the issue in Github directly.\r\n[Bytom-JAVA-SDK Issues](https://github.com/chainworld/java-bytom/issues)\r\n\r\n\r\n## License\r\n\r\nBytom JAVA SDK is based on the MIT protocol.\r\n\r\n\u003chttp://www.opensource.org/licenses/MIT\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainworld%2Fjava-bytom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainworld%2Fjava-bytom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainworld%2Fjava-bytom/lists"}