Run monero-wallet-rpc, watch incoming transfers, and issue VaderVPN tokens once blocks finalize.
Use the cloned Monero source to run the wallet RPC server service-side.
Build from pay/monero or install packages. Start with ./monerod --detach --restricted-rpc on localhost.
Launch monero-wallet-rpc --wallet-file merchant --rpc-bind-port 18083 --rpc-login. Enable HTTPS or reverse proxy for production.
Poll get_payments using integrated addresses or payment IDs. Once confirmations ≥ 10, call the token generator.
| Method | Purpose |
|---|---|
| create_address | Create subaddress per customer order. |
| get_address | Retrieve address metadata for receipts. |
| get_payments | Fetch payments by payment ID (integrated addresses). |
| incoming_transfers | List incoming outputs with confirmation counts for reconciliation. |
Source for wallet RPC lives at pay/monero/src/wallet/wallet_rpc_server.cpp, and API definitions in src/rpc/core_rpc_server_commands_defs.h.
Use this while automations are staged.