{"id":44318978,"url":"https://github.com/ontio/ontology-ts-sdk","last_synced_at":"2026-02-11T06:06:03.059Z","repository":{"id":31207624,"uuid":"126985426","full_name":"ontio/ontology-ts-sdk","owner":"ontio","description":"Comprehensive TypeScript library for the Ontology blockchain.","archived":false,"fork":false,"pushed_at":"2025-04-09T03:20:17.000Z","size":4420,"stargazers_count":66,"open_issues_count":23,"forks_count":38,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-30T11:49:44.546Z","etag":null,"topics":["ontology","sdk","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ontio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-27T12:49:20.000Z","updated_at":"2025-05-20T06:44:27.000Z","dependencies_parsed_at":"2022-08-07T16:15:32.021Z","dependency_job_id":"d4184815-33de-4a78-9d5d-7f5d66f40d16","html_url":"https://github.com/ontio/ontology-ts-sdk","commit_stats":{"total_commits":403,"total_committers":24,"mean_commits":"16.791666666666668","dds":0.739454094292804,"last_synced_commit":"7020d5aa405f9b5cf9cee20590c12f493d56e509"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ontio/ontology-ts-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontio%2Fontology-ts-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontio%2Fontology-ts-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontio%2Fontology-ts-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontio%2Fontology-ts-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ontio","download_url":"https://codeload.github.com/ontio/ontology-ts-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontio%2Fontology-ts-sdk/sbom","scorecard":{"id":707750,"data":{"date":"2025-08-11","repo":{"name":"github.com/ontio/ontology-ts-sdk","commit":"e4f3fad69051175cb1dc0d8c892822871cdfb239"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":5,"reason":"Found 7/12 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: test/wasm/helloworld.wasm:1","Warn: binary detected: test/wasm/wasm_demo_optimized.wasm:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pull-request.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/ontio/ontology-ts-sdk/pull-request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/ontio/ontology-ts-sdk/pull-request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ontio/ontology-ts-sdk/pull-request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ontio/ontology-ts-sdk/pull-request.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"57 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-xq7p-g2vc-g82p","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-xwcq-pm8m-c4vf","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T07:12:24.373Z","repository_id":31207624,"created_at":"2025-08-22T07:12:24.373Z","updated_at":"2025-08-22T07:12:24.373Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ontology","sdk","typescript"],"created_at":"2026-02-11T06:06:02.386Z","updated_at":"2026-02-11T06:06:03.051Z","avatar_url":"https://github.com/ontio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003eOntology TypeScript SDK \u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eVersion V1.1.18 \u003c/h4\u003e\n\n- [Overview](#overview)\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n  - [Download Through npm/Yarn](#download-through-npmyarn)\n  - [Build from Source Code](#build-from-source-code)\n    - [Downloading](#downloading)\n    - [Compiling](#compiling)\n    - [Testing](#testing)\n  - [Use in Project](#use-in-project)\n    - [Import](#import)\n    - [Require](#require)\n    - [In the Browser](#in-the-browser)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Overview\n\nThis is the official Ontology TypeScript SDK - a comprehensive library for developing with the [Ontology blockchain](https://ont.io) in both TypeScript and JavaScript. It currently supports management of wallets, digital identities and digital assets - as well as the deployment and invocation of smart contracts.\n\n## Getting Started\n\n* 进入 [中文版](https://ontio.github.io/documentation/ontology_ts_sdk_zh.html).\n* Enter [English Version](https://ontio.github.io/documentation/ontology_ts_sdk_en.html).\n\n## Installation\n\n### Download Through npm/Yarn\n\n````\nnpm install 'ontology-ts-sdk' --save\n````\n\nor\n\n```\nyarn add 'ontology-ts-sdk'\n```\n\n### Build from Source Code\n\n#### Downloading\n\n```\ngit clone 'https://github.com/ontio/ontology-ts-sdk.git'\n```\n\nThen install the dependencies with:\n\n```\nyarn\n```\n\n#### Compiling\n\nCompile the project with the:\n\n```\nyarn build:dev // or yarn build:prod\n```\n\nThis will create a compiled version of the SDK in the `lib` directory.\n\n#### Testing\n\nThe tests can be found in the `test` directory. They are distinguished into three categories stored in separate subfolders:\n* `unit`: unit tests that can be run without external or network dependencies\n* `integration`: integration tests that require access to one or more Blockchain nodes and test the actual interaction with the Blockchain\n* `example`: pure sample code without test assertations that can be used for explorative testing or documentation purposes\n\nTo run the tests, use one of:\n\n```\n# unit tests\nnpm run test:unit\n# integration tests\nnpm run test:integration\n# examples\nnpm run test:example\n# all\nnpm run test\n```\n\nor\n\n```\nyarn run test:unit\n# integration tests\nyarn run test:integration\n# examples\nyarn run test:example\n# all\nyarn test\n```\n\nThe integration tests use several accounts on the testnet that require funding of ONG tokens in order to pay for the transactions. If there are any test failures with error messages like \"insufficient funds\" or similar, make sure the following accounts are properly funded:\n\n* APT4wZG9sFQfjhyfGALPXQj5UyrQ3ZCVkY\n* ANH5bHrrt111XwNEnuPZj6u95Dd6u7G4D6\n* AXK2KtCfcJnSMyRzSwTuwTKgNrtx5aXfFX\n* AVXf5w8WD2y6jV1Lzi36oSKYNif1C7Surc\n* AdLUBSSHUuFaak9j169hiamXUmPuCTnaRz\n* AJkkLbouowk6teTaxz1F2DYKfJh24PVk3r\n* ATk57i8rMXFSBpHAdX3UQ4TNe48BBrfCoc\n* AU9TioM24rXk5E3tUGrv8jwgBA1aZVVKDW\n* AHTdWzj4jYBzbU48YBCfovvouTMc45M6iP\n* AJym8dF7wZLjtoiY8C3mmYt8f2tZDxq5iz\n\n### Use in Project\n\n#### Import\n\nUsing `import` to include the modules from `'ontology-ts-sdk'`:\n\n```\nimport {Wallet} from 'ontology-ts-sdk';\nvar wallet = Wallet.create('test');\n```\n\n#### Require\n\nUsing `require` to include the modules from `'ontology-ts-sdk'`:\n\n````\nvar Ont = require('ontology-ts-sdk');\nvar wallet = Ont.Wallet.create('test');\n````\n\n#### In the Browser\n\nTo use in the browser you must use the compiled version (as listed above).\nThe `browser.js` file is located in the `lib` directory.\nInclude it into the project with a `\u003cscript\u003e` tag:\n\n````\n\u003cscript src=\"./lib/browser.js\"\u003e\u003c/script\u003e\n````\n\nEverything will be available under the `Ont` variable, just like in the `require` example above.\n\n```\nvar wallet = Ont.Wallet.create('test');\n```\n\n## Contributing\n\nContributors are welcome to the `ontology-ts-sdk`. Before beginning, please take a look at our [contributing guidelines](CONTRIBUTING.md). You can open an issue by [clicking here](https://github.com/ontio/ontology-ts-sdk/issues/new).\n\nIf you have any issues getting setup, open an issue or reach out in the [Ontology Discord](https://discordapp.com/invite/4TQujHj).\n\n## License\n\nThe Ontology TypeScript SDK is availabl under the [LGPL-3.0 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fontio%2Fontology-ts-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fontio%2Fontology-ts-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fontio%2Fontology-ts-sdk/lists"}