{"id":25859077,"url":"https://github.com/splix/polkaj","last_synced_at":"2025-03-01T20:39:36.788Z","repository":{"id":44956600,"uuid":"261338457","full_name":"splix/polkaj","owner":"splix","description":"Library to access and build for Polkadot using Java","archived":false,"fork":false,"pushed_at":"2022-06-30T23:18:55.000Z","size":712,"stargazers_count":58,"open_issues_count":33,"forks_count":50,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-16T10:52:43.934Z","etag":null,"topics":["java","polkadot"],"latest_commit_sha":null,"homepage":null,"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/splix.png","metadata":{"files":{"readme":"README.adoc","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":"2020-05-05T01:53:50.000Z","updated_at":"2024-03-09T09:46:23.000Z","dependencies_parsed_at":"2022-09-10T05:40:43.055Z","dependency_job_id":null,"html_url":"https://github.com/splix/polkaj","commit_stats":null,"previous_names":["splix/polkaj"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Fpolkaj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Fpolkaj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Fpolkaj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Fpolkaj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splix","download_url":"https://codeload.github.com/splix/polkaj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241423004,"owners_count":19960606,"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":["java","polkadot"],"created_at":"2025-03-01T20:39:36.186Z","updated_at":"2025-03-01T20:39:36.769Z","avatar_url":"https://github.com/splix.png","language":"Java","readme":"= PolkaJ - Polkadot Java Client\n:lib-version: 0.3.0\n:lib-version-dev: 0.5.0-SNAPSHOT\n\nimage:https://github.com/emeraldpay/polkaj/workflows/Tests/badge.svg[\"Unit Tests\"]\nimage:https://codecov.io/gh/emeraldpay/polkaj/branch/master/graph/badge.svg[\"Coverage\",link=\"https://codecov.io/gh/emeraldpay/polkaj\"]\nimage:https://img.shields.io/github/license/emeraldpay/polkaj.svg?style=flat-square\u0026maxAge=2592000[\"License\",link=\"https://github.com/emeraldpay/polkaj/blob/master/LICENSE\"]\nimage:https://badges.gitter.im/emeraldpay/community.svg[\"Gitter\",link=\"https://gitter.im/emeraldpay/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\"]\n\nJava client library to use and access API of Polkadot based networks.\n\nWARNING: UNDER DEVELOPMENT\n\n- Latest Stable Version: {lib-version}\n- Latest Snapshot Version: {lib-version-dev}\n\n\n== Modules\n\n- `io.emeraldpay.polkaj:polkaj-scale:{lib-version}` - SCALE codec implementation\n- `io.emeraldpay.polkaj:polkaj-scale-types:{lib-version}` - SCALE mapping for standard Polkadot types\n- `io.emeraldpay.polkaj:polkaj-schnorrkel:{lib-version}` - Schnorrkel for Java\n- `io.emeraldpay.polkaj:polkaj-ss58:{lib-version}` - SS58 codec to encode/decode addresses and pubkeys\n- `io.emeraldpay.polkaj:polkaj-common-types:{lib-version}` - common types (Address, DotAmount, Hash256, etc)\n- `io.emeraldpay.polkaj:polkaj-json-types:{lib-version}` - JSON RPC mapping to Java classes\n- `io.emeraldpay.polkaj:polkaj-api-base:{lib-version}` - RPC base classes\n- `io.emeraldpay.polkaj:polkaj-api-http:{lib-version}` - JSON RPC HTTP client\n- `io.emeraldpay.polkaj:polkaj-api-ws:{lib-version}` - JSON RPC WebSocket client\n- `io.emeraldpay.polkaj:polkaj-tx:{lib-version}` - Storage access and Extrinsics\n\n== Usage\n\nTo use development SNAPSHOT versions you need to install the library into the local Maven repository.\n\n.Install into local Maven\n----\ngradle install\n----\n\n.Using with Gradle\n[source,groovy,subs=\"attributes\"]\n----\nrepositories {\n   // polkaj public repo\n   maven { url  \"https://dl.bintray.com/emerald/polkaj\" }\n   // required for com.github.multiformats:java-multibase library\n   maven { url 'https://jitpack.io' }\n}\n\ndependencies {\n    implementation 'io.emeraldpay.polkaj:polkaj-api-http:{lib-version}'\n}\n----\n\n== Documentation\n\nSee link:docs/[Documentation] in `./docs` directory, and a demonstration in `./examples`.\n\n== Example\n\n.Show current finalized block\n[source,java]\n----\nPolkadotHttpApi client = PolkadotApi.newBuilder()\n    .rpcCallAdapter(JavaHttpAdapter.newBuilder().build())\n    .build();\nFuture\u003cHash256\u003e hashFuture = client.execute(\n        PolkadotApi.commands().getFinalizedHead()\n);\n\nHash256 hash = hashFuture.get();\nSystem.out.println(\"Current head: \" + hash);\n\nFuture\u003cBlockResponseJson\u003e blockFuture = client.execute(\n        PolkadotApi.commands().getBlock(hash)\n);\n\nBlockResponseJson block = blockFuture.get();\nSystem.out.println(\"Current height: \" + block.getBlock().getHeader().getNumber());\nSystem.out.println(\"State hash: \" + block.getBlock().getHeader().getStateRoot());\n\n\nclient.close();\n----\n\n== License\n\nThe core project code is released under Apache 2.0 license.\n\nExamples and docs are published under CC0 license + additionally Apache 2.0 for code parts in the examples.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplix%2Fpolkaj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplix%2Fpolkaj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplix%2Fpolkaj/lists"}