1.4.0 • Published 1 year ago
dero-rpc-ts v1.4.0
dero-rpc-ts
Typescript wrappers for Dero Services
- DeroWasm (DeroHe Go compiled to wasm for running in the browser or server side)
- Dero RPC Bridge API for the browser.
- Dero Daemon and Wallet RPC
BETA software and is still in active development and is subject to change.
Install
npm install dero-rpc-ts
Usage for Rpc Bridge
import { DeroRpcBridgeWallet } from 'dero-rpc-ts';
await DeroRpcBridgeWallet.GetBalance(api,scid);
Usage for WASM
The dero wasm support is very limited and will most likely change. These are some helpers for the meantime.
import { DeroWasm } from 'dero-rpc-ts';
await DeroWasm.DeroWasmInitialize('mainnet',"https://your.dero.node.com");
// for direct access to the Wasm // the current implementation of dero WASM from Go is dumped right into the window so we wrap it like this to make it easily usable export const DeroWasmWindow: DeroWasmWindowI = window
## Todo
* Implement RPC calls to daemon and wallet
* Finish the WASM methods
1.4.0
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.0-beta.3
1 year ago
1.0.0-beta.2
1 year ago
1.0.0-beta.1
1 year ago
1.0.0
1 year ago