{"id":50672835,"url":"https://github.com/setheum/setheum-js","last_synced_at":"2026-06-08T13:01:12.196Z","repository":{"id":40668407,"uuid":"366945140","full_name":"setheum/setheum-js","owner":"setheum","description":"Promise and RxJS APIs around Setheum Network Blockchain RPC calls.","archived":true,"fork":false,"pushed_at":"2026-02-20T15:20:50.000Z","size":4867,"stargazers_count":2,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-20T19:55:01.547Z","etag":null,"topics":["api","cross-chain","defi","ethereum","evm","javascript","library","rxjs","setheum","setheum-js","setheum-network","substrate","typescript","web3"],"latest_commit_sha":null,"homepage":"https://setheum.js.org","language":"TypeScript","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/setheum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-13T05:36:20.000Z","updated_at":"2026-02-20T15:26:08.000Z","dependencies_parsed_at":"2023-02-18T13:30:36.024Z","dependency_job_id":null,"html_url":"https://github.com/setheum/setheum-js","commit_stats":null,"previous_names":["setheum-js/setheum.js","setheum-labs/setheum.js","setheum/setheum-js"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/setheum/setheum-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setheum%2Fsetheum-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setheum%2Fsetheum-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setheum%2Fsetheum-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setheum%2Fsetheum-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setheum","download_url":"https://codeload.github.com/setheum/setheum-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setheum%2Fsetheum-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34063159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["api","cross-chain","defi","ethereum","evm","javascript","library","rxjs","setheum","setheum-js","setheum-network","substrate","typescript","web3"],"created_at":"2026-06-08T13:00:41.560Z","updated_at":"2026-06-08T13:01:12.173Z","avatar_url":"https://github.com/setheum.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e setheum-js has been moved into the [`setheum` monorepo](https://github.com/setheum/setheum).\n\n![license](https://img.shields.io/badge/License-Apache%202.0-blue?logo=apache\u0026style=flat-square)\n[![npm](https://img.shields.io/npm/v/@setheum.js/api?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/@setheum.js/api)\n\n# @setheum.js\nPromise and RxJS APIs around Setheum RPC calls. \nThis library provides additional typing for users to access Setheum networks by using [setheum.js](https://github.com/setheum-js/api) using [polkadot.js](https://github.com/polkadot-js/api).\n\n# Getting Started\n\nMore documentation and examples on [setheum.js.org](https://setheum.js.org).\n\n1. Install dependencies\n\n```bash\nyarn add @polkadot/api @setheum.js/api\n```\n\n2. Create API instance\n\n```ts\nimport { ApiPromise } from '@polkadot/api';\nimport { WsProvider } from '@polkadot/rpc-provider';\nimport { options } from '@setheum.js/api';\n\nasync function main() {\n    const provider = new WsProvider('wss://api.setheum.xyz');\n    const api = new ApiPromise(options({ provider }));\n    await api.isReady;\n\n    // use api\n}\n\nmain()\n```\n\n3. Use api to interact with node\n\n```ts\n// query and display account data\nconst data = await api.query.system.account('5F98oWfz2r5rcRVnP9VCndg33DAAsky3iuoBSpaPUbgN9AJn');\nconsole.log(data.toHuman())\n```\n\n## Types\n\n- Use Setheum types\n\n```ts\nimport {setheumDefs} from '@setheum-js/type-definitions';\n\n// Define FileInfo\nexport type FileInfo = typeof setheumDefs.market.types.FileInfo;\n\n// Use FileInfo as `interface`\n```\n\n## Packages Overview\n\nThe API is split up into a number of internal packages -\n\n- [@setheum.js/api](packages/api/) The API library, providing both Promise and RxJS Observable-based interfaces. This is the main user-facing entry point.\n- [@setheum.js/api-derive](packages/api-derive/) Additional polkadot.js derives for Setheum Network.\nDerived results that are injected into the API, allowing for combinations of various query results (only used internally and exposed on the Api instances via `api.derive.*`).\n- [@setheum.js/app-util](./packages/app-util)\n  - Utilities to work with Setheum.\n- [@setheum.js/types](packages/types/) Codecs for all Polkadot.js type definations for Setheum primitives.\n\n## Contribution\n  \n  Please send a PR(Pull Request) to contribute this repo and read the following rules:\n\n  1. **No `--force` pushes** or modifying the master branch history in any way. If you need to rebase, ensure you do it in your own repo.\n  2. **Non-main branches**, prefixed with a short name moniker (e.g. zik/my-feature) must be used for ongoing work.\n  3. **All modifications** must be made in **pull-request** to solicit feedback from other contributors.\n  4. A pull-request **must not be merged until CI** has finished successfully.\n  5. Contributors should adhere to the [Google Typescript Style Guide](https://github.com/google/gts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetheum%2Fsetheum-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetheum%2Fsetheum-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetheum%2Fsetheum-js/lists"}