# Bytom-JS-SDK **Repository Path**: BytomBlockchain/Bytom-JS-SDK ## Basic Information - **Project Name**: Bytom-JS-SDK - **Description**: It is a project for Bytom Chrome extension JS SDK - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 19 - **Forks**: 1 - **Created**: 2019-02-12 - **Last Updated**: 2025-07-29 ## Categories & Tags **Categories**: blockchain **Tags**: None ## README # Bytom-JS-SDK [![npm version](https://img.shields.io/npm/v/bytom-js-sdk.svg?style=flat-square)](https://www.npmjs.com/package/bytom-js-sdk) ## Install ``` bash npm install bytom-js-sdk ``` ## Use ```javascript let net = { main: "http://main-net-host/", test: "http://test-net-host/" }; let bytom = new Bytom(net, chrome.runtime.getURL("main.wasm")); //set Bytom net type (main test), default main net. bytom.setNetType('test'); console.log(bytom.getNetType()); //create key bytom.sdk.keys.create("test_alias", "123456").then((res)=>{ console.log(res) }).catch(error => { console.log(error) }); ``` ## WebAssembly build Project depends on WebAssembly. \ See [Bytom-WebAssembly](https://github.com/oysheng/Bytom-WebAssembly).