Go to file
Conrado Gouvea 38c42aceb5 fix encoding 2023-05-31 09:44:36 -03: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 Documentation 2022-10-20 14:24:36 +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 fix encoding 2023-05-31 09:44:36 -03: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 restore standalone offline signer 2023-05-26 20:20:01 -03: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 Ledger App integration 2023-04-28 18:43:24 +10:00
binding2.h Return dummy u8 in c ffi 2022-11-18 23:28:56 +08:00
build.rs cargo fix 2023-04-28 18:44:26 +10:00
cbindgen.toml Get/Set Properties 2023-03-14 09:58:16 +10:00
fetch-params.sh Add fetch-params 2022-10-17 23:33:00 +08:00
openapi.yml API Doc 2022-10-19 11:57:13 +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