2022-06-10 03:47:02 -07:00
|
|
|
# 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
|
|
|
|
|
2022-06-10 04:14:21 -07:00
|
|
|
yec = { db_path = "./yec.db", lwd_url = "https://lite.ycash.xyz:9067" }
|
|
|
|
zec = { db_path = "./zec.db", lwd_url = "https://mainnet.lightwalletd.com:9067" }
|
2022-06-10 03:47:02 -07:00
|
|
|
```
|
2022-06-10 04:14:21 -07:00
|
|
|
|
2022-06-10 03:47:02 -07:00
|
|
|
|
|
|
|
# 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,
|
|
|
|
```
|