Quickstart
From a wallet with some USDC to an encrypted balance you can read.
This walk-through deposits 500.00 USDC. It works the same with SOL. You need a Solana wallet holding the USDC and a little SOL for transaction fees and account rent.
In the app
Connect a wallet
Open the app and press Connect wallet. Any Wallet Standard wallet works.
Unlock
Press Unlock and sign the message your wallet shows. Your browser derives your key from that signature. The message is the same each time, so the same wallet gets the same key on any device. Signing it sends no transaction and costs nothing.
Deposit
Open Deposit, pick USDC and enter 500.00. On a wallet with no hUSDC account the button reads Set up and deposit. Press it and approve in your wallet.
Watch it land
Back on Balances, your hUSDC account reads 500.00 USDC. On an explorer, the same account shows a ciphertext where the balance is.
With the CLI
With HUSH_RPC_URL and HUSH_PROGRAM_ID set, and a keypair file as the wallet:
hush deposit --asset usdc --amount 500
hush apply --asset usdc
hush balance --asset usdcdeposit sets up the account when it is missing. The CLI page has every command and option.
With the SDK
The same path in TypeScript is four calls: derive the keys, buildSetup, the API's buildDeposit, and buildApply. The SDK page has them in order, with the function that signs and submits each.