nexus_getVaultState
Get vault state for a user.User’s public key (hex)
Vault state including balances and pending withdrawals
Response
nexus_getVaultAddress
Get deposit vault address for an NEXUS address.NEXUS account address
Vault address information
Response
nexus_deriveVaultFromPubkey
Derive vault address from public key.32-byte x-only public key (hex)
Derived vault address
nexus_registerPubkey
Register a public key for vault derivation.32-byte x-only public key (hex)
Registration result
nexus_requestWithdrawal
Request a withdrawal from NEXUS to L1.User’s public key
Zcash destination address (t-addr: tmXxx on regtest, t1xxx on mainnet)
Amount in zatoshi (1 ZEC = 100,000,000 zatoshi)
Withdrawal request result
Vault Architecture
Zcash vaults use P2SH transparent addresses (t-addr) with two spending paths:Protocol Path
Both the user key and protocol key are required (2-of-2). Used for normal deposits and withdrawals. L1 vault balance always equals NEXUS vZEC balance (1:1 backing).Escape Path
Users can unilaterally recover funds after 16,128 blocks (~2 weeks at 75s/block) — no protocol permission needed.The escape path ensures users can always recover their funds, even if the protocol becomes unresponsive.