dexterlabz / znn.ts Goto Github PK
View Code? Open in Web Editor NEWZenon TypeScript SDK
License: MIT License
Zenon TypeScript SDK
License: MIT License
Hey,
Im running into this error while sending a transaction.
TypeError [Error]: fetch failed
at node:internal/deps/undici/undici:12443:11 {
cause: Error: unknown scheme
This occurs into the generatePow, at this line
worker = new Worker("./generatedPowWorker.cjs");
Any idea whats happening here? I'm out of ideas
Any help would be appreciated, thanks
At the moment, the client is missing some features. I understand that this is how it's done in the Dart SDK, but that does not necessary mean it's good in JS.
I'm unsure if we need the status/restart/stop functionality
.
Also, feel free to use my code. It supports both http & ws, as well as notifications & callbacks for the subscribe
endpoint.
Can you please jump on this thread and answer some outstanding questions about the submission? I would love to vote yes, but the community has questions.
Instead of using this
npm i znn-ts-sdk
One can simply use this instead
npm install github:dexter703/znn-ts-sdk
I've made a repo to try to implement the CLI using the TypeScript library. Link here
The zenon
singleton object should contain the
currentKeyPair
(used in send operations)KeyStoreManager
(used to interact w/ the wallet folder directly)setKeyPair()
- to set the currentKeyPair
$ ts-node bin/cli.ts
/Users/alien-valley/cli.ts/node_modules/znn-ts-sdk/dist/lib/src/pow/pow.js:12
window.URL = window.URL || window.webkitURL;
^
ReferenceError: window is not defined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.