{"id":26674181,"url":"https://github.com/nuls-io/nuls-v2-js-sdk","last_synced_at":"2025-04-12T06:53:46.388Z","repository":{"id":34292954,"uuid":"173276005","full_name":"nuls-io/nuls-v2-js-sdk","owner":"nuls-io","description":"NULS2.0 JavaScript SDK","archived":false,"fork":false,"pushed_at":"2025-02-17T02:20:06.000Z","size":1083,"stargazers_count":16,"open_issues_count":17,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T06:53:42.504Z","etag":null,"topics":["javascript","javascript-sdk","nuls","nuls-api","nuls-blockchain","sdk"],"latest_commit_sha":null,"homepage":"https://nuls.io","language":"JavaScript","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/nuls-io.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":"2019-03-01T09:42:11.000Z","updated_at":"2025-03-10T02:56:34.000Z","dependencies_parsed_at":"2024-12-25T10:23:17.724Z","dependency_job_id":"739c2606-eeac-4299-aaba-00a093c46352","html_url":"https://github.com/nuls-io/nuls-v2-js-sdk","commit_stats":{"total_commits":179,"total_committers":9,"mean_commits":19.88888888888889,"dds":0.6201117318435754,"last_synced_commit":"5ffc3ccfa52d62a4e5dc51c06efed4702e709917"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuls-io%2Fnuls-v2-js-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuls-io%2Fnuls-v2-js-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuls-io%2Fnuls-v2-js-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuls-io%2Fnuls-v2-js-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuls-io","download_url":"https://codeload.github.com/nuls-io/nuls-v2-js-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530591,"owners_count":21119595,"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":["javascript","javascript-sdk","nuls","nuls-api","nuls-blockchain","sdk"],"created_at":"2025-03-26T02:17:44.139Z","updated_at":"2025-04-12T06:53:46.359Z","avatar_url":"https://github.com/nuls-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install\n```bash\n$ npm i nuls-sdk-js\n```\n\n# Usage\n```js\nconst nuls = require('./index');\n\nlet chainId = 3; //链ID 1:NULS主网 2：NULS测试网 3以上其他链\nlet passWord = \"\";\nlet prefix = \"semo\"; //链前缀\n\n//创建地址\nconst newAddress = nuls.newAddress(chainId, passWord, prefix);\nconsole.log(newAddress);\n\n//导入地址\nconst key =\"\";\nconst importAddress = nuls.importByKey(chainId, key, passWord,prefix);\nconsole.log(importAddress);\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuls-io%2Fnuls-v2-js-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuls-io%2Fnuls-v2-js-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuls-io%2Fnuls-v2-js-sdk/lists"}