Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
privacy-boost unshield \ --token 0x4200000000000000000000000000000000000006 \ --amount 0.5 \ --recipient 0x1234567890123456789012345678901234567890 \ --human
Building proof... (this may take a moment) Proof generated successfully Withdraw submitted! Transaction: 0x5678...9abc Amount: 0.5 ETH Recipient: 0x1234...7890
--token
--amount
--recipient
--human
let result = sdk.unshield( "0x4200000000000000000000000000000000000006", "500000000000000000", // 0.5 tokens in wei "0x1234567890123456789012345678901234567890", )?; println!("Withdraw TX: {}", result.tx_hash); println!("Fee: {}", result.fee);
pub struct UnshieldResult { pub tx_hash: String, pub fee: String, }
privacy-boost unshield \ --token $TOKEN \ --amount 0.5 \ --recipient $(privacy-boost status --json | jq -r .wallet_address) \ --human
let wallet = sdk.get_wallet_address().unwrap(); let result = sdk.unshield(token_address, amount, &wallet)?;
match sdk.unshield(token_address, amount, recipient) { Ok(result) => println!("Withdraw TX: {}", result.tx_hash), Err(CliError::InsufficientBalance) => println!("Not enough shielded balance"), Err(CliError::InvalidAddress) => println!("Invalid recipient address"), Err(CliError::NotAuthenticated) => println!("Please login first"), Err(CliError::NetworkError { message }) => println!("Network error: {}", message), Err(e) => println!("Withdrawal failed: {:?}", e), }
privacy-boost balance --token $TOKEN privacy-boost unshield --token $TOKEN --amount 0.5 --recipient $ADDR --human