{"id":13410063,"url":"https://github.com/toncenter/tonweb","last_synced_at":"2026-03-05T07:13:43.827Z","repository":{"id":37859157,"uuid":"242523498","full_name":"toncenter/tonweb","owner":"toncenter","description":"JavaScript SDK for TON (The Open Network)","archived":false,"fork":false,"pushed_at":"2024-08-20T01:06:47.000Z","size":2382,"stargazers_count":716,"open_issues_count":259,"forks_count":277,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-11-15T03:52:41.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toncenter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2020-02-23T13:37:49.000Z","updated_at":"2025-11-11T19:47:56.000Z","dependencies_parsed_at":"2024-03-01T14:46:26.713Z","dependency_job_id":"a6dcd0d8-21d7-45e4-8461-4dff35a95f63","html_url":"https://github.com/toncenter/tonweb","commit_stats":{"total_commits":211,"total_committers":9,"mean_commits":"23.444444444444443","dds":0.6445497630331753,"last_synced_commit":"52bef80dde9fef39c7573c3eca25bfeb62950e7b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toncenter/tonweb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toncenter%2Ftonweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toncenter%2Ftonweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toncenter%2Ftonweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toncenter%2Ftonweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toncenter","download_url":"https://codeload.github.com/toncenter/tonweb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toncenter%2Ftonweb/sbom","scorecard":{"id":893438,"data":{"date":"2025-08-11","repo":{"name":"github.com/toncenter/tonweb","commit":"76dfd0701714c0a316aee503c2962840acaf74ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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: MIT License: 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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"40 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-c2jc-4fpr-4vhg","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","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-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","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-24T12:46:30.162Z","repository_id":37859157,"created_at":"2025-08-24T12:46:30.162Z","updated_at":"2025-08-24T12:46:30.162Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30113306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-07-30T20:01:04.783Z","updated_at":"2026-03-05T07:13:43.803Z","avatar_url":"https://github.com/toncenter.png","language":"JavaScript","funding_links":[],"categories":["Block explorers \u0026 Dev-ops tools","🧑‍💻 Development"],"sub_categories":["Libraries \u0026 SDKs"],"readme":"![splash_js_sdk](https://user-images.githubusercontent.com/1449561/154848382-e89fef68-3aee-4ca6-8d52-1466bfdf2c89.png)\n\n# TonWeb - JavaScript SDK for [The Open Network](https://ton.org)\n\n[![NPM](https://img.shields.io/npm/v/tonweb.svg)](https://www.npmjs.org/package/tonweb)\n\n## Install Web\n\n`npm install tonweb` or `yarn add tonweb`\n\n```js\nimport TonWeb from \"tonweb\";\n\nconst tonweb = new TonWeb();\n```\n\nor\n\n`\u003cscript src=\"tonweb.js\"\u003e\u003c/script\u003e`\n\n`const tonweb = new window.TonWeb();`\n\n## Install NodeJS\n\n`npm install tonweb` or `yarn add tonweb`\n\n```js\nconst TonWeb = require('tonweb');\n\nconst tonweb = new TonWeb();\n```\n\n## Overview example\n\n```js\nconst tonweb = new TonWeb();\n\nconst wallet = tonweb.wallet.create({publicKey});\n\nconst address = await wallet.getAddress();\n\nconst nonBounceableAddress = address.toString(true, true, false);\n\nconst seqno = await wallet.methods.seqno().call();\n\nawait wallet.deploy(secretKey).send(); // deploy wallet to blockchain\n\nconst fee = await wallet.methods.transfer({\n    secretKey,\n    toAddress: 'EQDjVXa_oltdBP64Nc__p397xLCvGm2IcZ1ba7anSW0NAkeP',\n    amount: TonWeb.utils.toNano(0.01), // 0.01 TON\n    seqno: seqno,\n    payload: 'Hello',\n    sendMode: 3,\n}).estimateFee();\n\nconst Cell = TonWeb.boc.Cell;\nconst cell = new Cell();\ncell.bits.writeUint(0, 32);\ncell.bits.writeAddress(address);\ncell.bits.writeGrams(1);\nconsole.log(cell.print()); // print cell data like Fift\nconst bocBytes = cell.toBoc();\n\nconst history = await tonweb.getTransactions(address);\n\nconst balance = await tonweb.getBalance(address);\n\ntonweb.sendBoc(bocBytes);\n\n```\n\n## API\n\nBy default, mainnet [toncenter.com](https://toncenter.com) API is used. Please note that without the API key there will be a request rate limit.\n\nYou can start your own TON HTTP API instance as it is [open source](https://github.com/toncenter/ton-http-api).\n\nUse mainnet TonCenter API with high ratelimit API key:\n\n```js\nconst tonweb = new TonWeb(new TonWeb.HttpProvider('https://toncenter.com/api/v2/jsonRPC', {apiKey: 'YOUR_MAINNET_TONCENTER_API_KEY'}));\n```\n\nUse testnet TonCenter API with high ratelimit API key:\n\n```js\nconst tonweb = new TonWeb(new TonWeb.HttpProvider('https://testnet.toncenter.com/api/v2/jsonRPC', {apiKey: 'YOUR_TESTNET_TONCENTER_API_KEY'}));\n```\n\n## Documentation\n\nEach part is documented separately:\n\n[tonweb](https://github.com/toncenter/tonweb/blob/master/src/README.md) - root class and methods\n\n[tonweb-contract-wallet](https://github.com/toncenter/tonweb/blob/master/src/contract/wallet/README.md) - interaction with wallet's smart contracts.\n\n[tonweb-contract](https://github.com/toncenter/tonweb/blob/master/src/contract/README.md) - abstract interface to interact with TON smart contracts.\n\n[tonweb-boc](https://github.com/toncenter/tonweb/blob/master/src/boc/README.md) - serializations of Cell and BitString\n\n[tonweb-utils](https://github.com/toncenter/tonweb/blob/master/src/utils/README.md) - work with TON Addresses, coin values, byte arrays, hex, hash functions.\n\n\n**Also we use JSDoc in code**\n\n## Roadmap\n\n1. Unit-tests\n\n2. Typescript\n\n## Build\n\n```bash\nnpm install \n\nnpm run build\n```\n\n## Use as alternative to Fift for building binary messages to smart-contracts\n\n```bash\nnpm install -g tonweb\n\nexport NODE_PATH=$(npm root --quiet -g)\n```\n\nThen create your_script.js\n\n```js\nconst TonWeb = require('tonweb');\n\nconst tonweb = new TonWeb();\n\n. . .\n\n```\n\nrun script\n\n```bash\nnode your_script.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoncenter%2Ftonweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoncenter%2Ftonweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoncenter%2Ftonweb/lists"}