wavelet-client
A developer-friendly stateless HTTP client for interacting with a Wavelet node. Wrriten in JavaScript.
The entire source code of this client was written to just fit within a single JavaScript file to make the underlying code simple and easy to understand. The client has a very minimal set of dependencies that are well-audited.
The client has been tested to work on both NodeJS alongside on the browser. As a warning, the client uses some newer language features such as big integers which may require a polyfill.
Setup
yarn add wavelet-client
Usage
const Wavelet Contract TAG_TRANSFER = ; const JSBI = ;const BigInt = JSBIBigInt; const client = "http://127.0.0.1:9000"; async { console; console; const transfer = await client; console; const call = await client; console; const stake = await client; console; const wallet = Wavelet; const account = await client; const contract = client '52bb52e0440ce0aa7a7d2018f5bac21d6abde64f5b9498615ce2bef332bd487a'; await contract; console; console; const consensusPoll = await client; const transactionsPoll = await client; const accountsPoll = await client; for let i = 0; i < 100; i++ await client; };