{"id":19291722,"url":"https://github.com/hirosystems/stacks-rpc-client","last_synced_at":"2025-08-02T07:10:05.111Z","repository":{"id":258603583,"uuid":"863582139","full_name":"hirosystems/stacks-rpc-client","owner":"hirosystems","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-18T09:08:58.000Z","size":370,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-22T19:50:01.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hirosystems.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-26T14:40:50.000Z","updated_at":"2024-09-26T21:24:27.000Z","dependencies_parsed_at":"2024-10-19T19:59:33.862Z","dependency_job_id":null,"html_url":"https://github.com/hirosystems/stacks-rpc-client","commit_stats":null,"previous_names":["hirosystems/stacks-rpc-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fstacks-rpc-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fstacks-rpc-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fstacks-rpc-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fstacks-rpc-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hirosystems","download_url":"https://codeload.github.com/hirosystems/stacks-rpc-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395747,"owners_count":19794572,"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":[],"created_at":"2024-11-09T22:27:29.466Z","updated_at":"2025-02-24T00:15:31.204Z","avatar_url":"https://github.com/hirosystems.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @stacks/rpc-client\n\nClient library for working with [Stacks blockchain RPC interface](https://github.com/stacks-network/stacks-core/blob/master/docs/rpc/openapi.yaml).\n\n## Installation\n\n```\nnpm install @stacks/rpc-client\n```\n\n## Usage\n\n```typescript\nimport { createClient } from '@stacks/rpc-client';\nimport { StacksTestnet } from '@stacks/network';\n\nconst client = createClient(new StacksTestnet());\nconst result = await client.GET('/v2/accounts/{principal}', {\n  params: {\n    path: { principal: 'ST2QKZ4FKHAH1NQKYKYAYZPY440FEPK7GZ1R5HBP2' },\n    query: { tip: 'latest', proof: 0 },\n  },\n});\n\nconsole.log(result.data); // { \"balance\": \"0x000000000000000000228fb60297b639\", ... }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosystems%2Fstacks-rpc-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirosystems%2Fstacks-rpc-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosystems%2Fstacks-rpc-client/lists"}