Go to file
Hanh 549a3a25ee Skip ill-formed memos 2022-12-23 05:16:40 +08:00
benches Squashed commit of the following: 2022-10-20 14:48:08 +08:00
docs RPC 2022-11-11 23:30:22 +08:00
integrations
proto
report/scan
src Skip ill-formed memos 2022-12-23 05:16:40 +08:00
test-scripts RPC 2022-11-11 23:30:22 +08:00
.gitignore Squashed commit of the following: 2022-10-20 14:48:08 +08:00
Cargo.toml Pool transfer 2022-12-06 00:13:31 +08:00
README.md
Rocket.toml
binding.h Customizable diversified addresses 2022-12-21 03:55:12 +08:00
binding2.h Return dummy u8 in c ffi 2022-11-18 23:28:56 +08:00
build.rs
fetch-params.sh
openapi.yml
warp.js

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