{"repo":"starcoinorg/starcoin.js","free":true,"listed":false,"github":"https://github.com/starcoinorg/starcoin.js","clone":"git clone https://github.com/starcoinorg/starcoin.js.git","description":"Javascript SDK for the Starcoin Blockchain","language":"TypeScript","stars":14,"topics":["starcoin","blockchain","javascript","typescript","js-sdk"],"license":null,"category":"blockchain-web3","readme_excerpt":"Starcoin SDK starcoin.js is a full featured sdk for developing dapp on Starcoin blockchain network. Type Architecture Diagram Docs Starcoin Javascript SDK Usage First, start a Starcoin node with websocket and http APIs opened. or Utils Decode Events TransactionEvents returned from node are encoded in BCS format. client sdk should decode the data to see the detailed information. You can also see the spec in src/index.spec.ts . Develop Publish to npm 1. change version in package.json 2. npm run build 3. npm login 4. npm config set registry https://registry.npmjs.org/ # use npm config ls to confirm 5. npm publish --access public --tag latest --dry-run # test locally before actually publishing to the registry 6. npm publish --access public --tag latest FAQ Uncaught TypeError: Cannot convert a BigInt value to a number in create-react-app If you are using this sdk in your dapp build up by create-react-app, and sdk version = 2.0.0, you will get following error in production( yarn build ), which is not happen in developement( yarn start ): Uncaught TypeError: Cannot convert a BigInt value to a number 1. Root cause: The plugin @babel/plugin-transform-exponentiation-operator in create-react-app will convert into This operation has no effect on Number, but for the BigInt type of ECMAScript 2020, this conversion is a fatal error. Math.pow() only supports Number type parameters. and the browserslist section in create-react-app's package.json is: the production taget is too old to support ","default_branch":null,"files":null,"tree":[],"storefront":"/r/starcoinorg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/starcoinorg/starcoin.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}