{"id":13651439,"url":"https://github.com/NodleCode/substrate-client-kotlin","last_synced_at":"2025-04-22T22:31:15.958Z","repository":{"id":47162450,"uuid":"306563705","full_name":"NodleCode/substrate-client-kotlin","owner":"NodleCode","description":"Substrate RPC-client implementation made in pure Kotlin. ","archived":false,"fork":false,"pushed_at":"2021-09-10T12:03:58.000Z","size":143,"stargazers_count":17,"open_issues_count":6,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-01-25T03:42:55.390Z","etag":null,"topics":["android","kotlin","parity-substrate","substrate"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/NodleCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-23T07:41:00.000Z","updated_at":"2023-12-04T14:32:03.000Z","dependencies_parsed_at":"2022-07-24T23:46:24.210Z","dependency_job_id":null,"html_url":"https://github.com/NodleCode/substrate-client-kotlin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodleCode%2Fsubstrate-client-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodleCode%2Fsubstrate-client-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodleCode%2Fsubstrate-client-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodleCode%2Fsubstrate-client-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NodleCode","download_url":"https://codeload.github.com/NodleCode/substrate-client-kotlin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333935,"owners_count":21413480,"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":["android","kotlin","parity-substrate","substrate"],"created_at":"2024-08-02T02:00:49.481Z","updated_at":"2025-04-22T22:31:15.631Z","avatar_url":"https://github.com/NodleCode.png","language":"Kotlin","readme":"# Kotlin Substrate Client\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nsubstrate-client-kotlin is client library to interact with a substrate-based chain.\nIt uses the API available from the RPC endpoint only (no sidecar).\nAs of today it provides the following functionality:\n\n* compatible with substrate 2.0\n* ed25519 wallet creation\n* get account info (balance)\n* sign extrinsic and send (immortal era)\n* estimate fee\n\nwhat is currently **not** supported\n\n* sr25519 wallet\n* mortal era extrinsic\n\n## Using the library\n\n1. Add the JitPack repository.\n```\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n\n2. Add the substrate-client dependency\n```\ndependencies {\n        implementation 'com.github.NodleCode:substrate-client-kotlin:1.0'\n}\n```\n\n\n## Running the tests over custom rpc endpoints\n\nThe library comes with a set of JUnit Test to ensure that the api  \nprovided by this library works properly\n\nIn order to test that this library works over your own substrate rpc  \nendpoints, you need to provide the chains configuration that will be  \nused by the tests.\n\nSimply create a file in\n\n```\nsubstrate-client/src/test/resources/rpc-test.config\n```\n\nThis file must be a CSV (without header) and must contain 3 columns per lines:\n* rpc endpoint (e.g. wss://rpc.polkadot.io)\n* alice wallet mnemonic\n* bob wallet mnemonic\n\nAlice and Bob wallet must be provisioned with enough token to be able\nto perform the test and pay the fees. When testing sending transaction,\nthe test will always send token from the wallet with the most token.\n\nHere is an example of such file (wallets and rpc doesn't exists):\n```\nwss://mainnet.substrate-chain.io,smoke key grief belt gather absurd open attend keep flip hollow popular,total arch interest inmate book cigar primary long mixture party practice old\nwss://testnet.substrate-chain.io,pumpkin poem tuition scatter elder moral hockey valley health head joke stem,pupil opinion unhappy nerve adult lunch dolphin famous angry draw soap like\n```\n\nYou can then run the tests with gradle:\n\n```\n./gradlew test\n```\n\nThe test report will be generated in `substrate-client/build/reports/test/index.html`\n\n## Additional Notes\n\nThis is a work in progress and comes with no warranty.\ncontribution are welcome. If you have any question, ideas or if you found a bug, please open an issue!","funding_links":[],"categories":["Client Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNodleCode%2Fsubstrate-client-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNodleCode%2Fsubstrate-client-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNodleCode%2Fsubstrate-client-kotlin/lists"}