Go to file
Hanh f62a3f3031 GPU bug fix 2022-09-27 20:48:48 +08:00
benches t-scan 2022-06-08 00:58:24 +08:00
docs Comments 2021-06-19 21:41:26 +08:00
proto Pass spam filter option upstream 2022-08-31 23:35:21 +08:00
report/scan Witness and Tree State calculations 2021-06-19 10:57:06 +08:00
src GPU bug fix 2022-09-27 20:48:48 +08:00
test-scripts Integration tests 2022-06-11 20:29:14 +08:00
.gitignore Integration tests 2022-06-11 20:29:14 +08:00
Cargo.toml Add tool to extract zkeys from wallet.dat (need db_dump 6.2) 2022-09-24 12:21:47 +08:00
README.md Some POC nodejs bindings 2022-07-21 19:22:41 +08:00
Rocket.toml GPU bug fix 2022-09-27 20:48:48 +08:00
binding.h Error handling 2022-09-22 18:06:25 +08:00
binding2.h iOS Build 2022-06-09 19:28:37 +08:00
build.rs iOS Build 2022-06-09 19:28:37 +08:00
out.log Witness and Tree State calculations 2021-06-19 10:57:06 +08:00
warp.js Some POC nodejs bindings 2022-07-21 19:22:41 +08:00

README.md

Build as standalone server

cargo b --release --bin warp-rpc --features=rpc
./target/release/warp-rpc

Configuration

Edit Rocket.toml

[default]
allow_backup = true
allow_send = true

yec = { db_path = "./yec.db", lwd_url = "https://lite.ycash.xyz:9067" }
zec = { db_path = "./zec.db", lwd_url = "https://mainnet.lightwalletd.com:9067" }

RPC

TODO

set_lwd,
set_active,
new_account,
list_accounts,
sync,
rewind,
get_latest_height,
get_backup,
get_balance,
get_address,
get_tx_history,
pay,

NodeJS

NodeJS bindings are incomplete/unsupported and maybe dropped at any time.

  • Install nj-cli (one time)
  • Edit Cargo.toml
  • Build
  • Use

Ex:

$ cargo install nj-cli
$ vim Cargo.toml
...
[lib]
#name = "warp_api_ffi"
crate-type = ["cdylib"]
...
$ nj-cli build --release -- --features=nodejs
$ node warp.js