{"repo":"starkware-libs/starkex-js","free":true,"listed":false,"github":"https://github.com/starkware-libs/starkex-js","clone":"git clone https://github.com/starkware-libs/starkex-js.git","description":"JavaScript SDK for StarkEx","language":"TypeScript","stars":32,"topics":["starkware","starkex","typescript","sdk","javascript","nodejs","blockchain","ethereum"],"license":null,"category":"blockchain-web3","readme_excerpt":"JavaScript SDK for StarkEx starkex-js is a JavaScript wrapper around the StarkEx API that can be used in both NodeJS and Browser environments. starkex-js is written in [ECMAScript6] and strongly typed and transpiled to ECMAScript5 using [TypeScript]. [typescript]: https://www.typescriptlang.org/ [ecmascript6]: https://github.com/ericdouglas/ES6-Learning#articles--tutorials Installation This package is Typescript ready How to use it The library is a default export. Browser To use it browser, you need to use the code from browser.js file. or via CDN In this scenario, the library will be bound to the global window object with the property StarkExAPI. window.StarkExAPI or simple StarkExAPI can be used to access the library. If you have a toolchain available you can use an import statement. Because is a default export, here you can import it with what name you want Node For NodeJS environment, just replace browser with node Usage The object imported is a class that first needs to be instantiated: Where config is a configuration object of form: Example Example with certs (NodeJS environment) The StarkExClient object returned from the constructor exposing the different gateways existing on this API: public gateway: Gateway This is the StarkEx Services HTTP gateway version2 for all external trading interactions. Example for is alive Example for get first unused tx id Example for a DepositRequest Example for a MultiTransactionRequest Full API docs for gateway can be found here. public","default_branch":null,"files":null,"tree":[],"storefront":"/r/starkware-libs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/starkware-libs/starkex-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."}