{"id":30114032,"url":"https://github.com/near/near-jsonrpc-client-rs","last_synced_at":"2025-08-10T07:37:36.610Z","repository":{"id":37894538,"uuid":"397574393","full_name":"near/near-jsonrpc-client-rs","owner":"near","description":"Lower-level API for interfacing with the NEAR Protocol via JSONRPC.","archived":false,"fork":false,"pushed_at":"2025-06-18T04:00:45.000Z","size":387,"stargazers_count":51,"open_issues_count":2,"forks_count":43,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-30T22:41:58.373Z","etag":null,"topics":["blockchain","jsonrpc","near-protocol","rpc","rpc-client","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/near-jsonrpc-client","language":"Rust","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/near.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-18T11:21:54.000Z","updated_at":"2025-07-09T14:17:17.000Z","dependencies_parsed_at":"2023-12-26T00:31:12.357Z","dependency_job_id":"5ea1ce8a-1202-4910-8fd8-94643638ab72","html_url":"https://github.com/near/near-jsonrpc-client-rs","commit_stats":{"total_commits":193,"total_committers":10,"mean_commits":19.3,"dds":0.08808290155440412,"last_synced_commit":"2991aa776a37d28a1d4148343b4d2693ec5ce069"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/near/near-jsonrpc-client-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-jsonrpc-client-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-jsonrpc-client-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-jsonrpc-client-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-jsonrpc-client-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/near","download_url":"https://codeload.github.com/near/near-jsonrpc-client-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-jsonrpc-client-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269693463,"owners_count":24460232,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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","jsonrpc","near-protocol","rpc","rpc-client","rust"],"created_at":"2025-08-10T07:37:36.106Z","updated_at":"2025-08-10T07:37:36.594Z","avatar_url":"https://github.com/near.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# near-jsonrpc-client\n\nLower-level API for interfacing with the NEAR Protocol via JSONRPC.\n\n[![Crates.io](https://img.shields.io/crates/v/near-jsonrpc-client?label=latest)](https://crates.io/crates/near-jsonrpc-client)\n[![Documentation](https://docs.rs/near-jsonrpc-client/badge.svg)](https://docs.rs/near-jsonrpc-client)\n[![MIT or Apache 2.0 Licensed](https://img.shields.io/crates/l/near-jsonrpc-client.svg)](#license)\n[![Dependency Status](https://deps.rs/crate/near-jsonrpc-client/0.5.1/status.svg)](https://deps.rs/crate/near-jsonrpc-client/0.5.1)\n\n## Usage\n\nEach one of the valid JSON RPC methods are defined in the `methods` module.\nFor instance, to make a `tx` request, you start with the `tx` module\nand construct a request using the `methods::tx::RpcTransactionStatusRequest` struct.\n\n```rust\nuse near_jsonrpc_client::{methods, JsonRpcClient};\nuse near_jsonrpc_primitives::types::transactions::TransactionInfo;\n\nlet mainnet_client = JsonRpcClient::connect(\"https://archival-rpc.mainnet.near.org\");\n\nlet tx_status_request = methods::tx::RpcTransactionStatusRequest {\n    transaction_info: TransactionInfo::TransactionId {\n        hash: \"9FtHUFBQsZ2MG77K3x3MJ9wjX3UT8zE1TczCrhZEcG8U\".parse()?,\n        account_id: \"miraclx.near\".parse()?,\n    },\n};\n\n// call a method on the server via the connected client\nlet tx_status = mainnet_client.call(tx_status_request).await?;\n\nprintln!(\"{:?}\", tx_status);\n```\n\nCheck out [`the examples folder`](https://github.com/near/near-jsonrpc-client-rs/tree/master/examples) for a comprehensive list of helpful demos. You can run the examples with `cargo`. For example: `cargo run --example view_account`.\n\n\n## Releasing\n\nVersioning and releasing of this crate is automated and managed by [custom fork](https://github.com/miraclx/cargo-workspaces/tree/grouping-versioning-and-exclusion) of [`cargo-workspaces`](https://github.com/pksunkara/cargo-workspaces). To publish a new version of this crate, you can do so by bumping the `version` under the `[workspace.metadata.workspaces]` section in the [package manifest](https://github.com/near/near-jsonrpc-client-rs/blob/master/Cargo.toml) and submit a PR.\n\nWe have CI Infrastructure put in place to automate the process of publishing all crates once a version change has merged into master.\n\nHowever, before you release, make sure the [CHANGELOG](https://github.com/near/near-jsonrpc-client-rs/blob/master/CHANGELOG.md) is up to date and that the `[Unreleased]` section is present but empty.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as below, without any additional terms or conditions.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnear%2Fnear-jsonrpc-client-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnear%2Fnear-jsonrpc-client-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnear%2Fnear-jsonrpc-client-rs/lists"}