Deposit

Deposit

Move SOL or USDC from your wallet into your encrypted balance.

A deposit moves SOL or USDC from your wallet into the vault and credits the same amount of hSOL or hUSDC to your Hush account. Hush charges no fee for it. The amount is public, as it is for any transfer out of a wallet, and the balance it joins is a ciphertext.

Before you start

Your wallet needs the amount you are depositing, plus a little SOL for transaction fees. The opening deposit in each asset also pays the rent of your new Hush account, which Solana holds for as long as the account exists.

In the app

  1. Open Deposit

    Connect and unlock, then open Deposit.

  2. Pick the asset and the amount

    Choose SOL or USDC and enter an amount. The screen shows what leaves your wallet and what is added to your encrypted balance.

  3. Press Deposit

    The button reads Set up and deposit when you have no Hush account for this asset. Approve in your wallet.

  4. Let it run

    The screen lists its steps and follows each one: Set up, when needed, then Deposit into your pending balance, then Apply, which folds pending into available.

  5. Done

    Balances shows the amount as available, ready to send or withdraw.

What happened on chain

StepWhat movedAmount on an explorer
Set up, when neededNothing. Your Hush account is created with your encryption public key and a zero balance.None
DepositThe asset from your wallet to the vault, and the same amount minted to your Hush account and placed in pendingPublic
ApplyPending into available, inside your Hush accountNone

After depositing 500.00 USDC into an empty account and applying, the app reads 500.00 USDC available and an explorer shows a ciphertext.

Set up on its own

You can set up a Hush account without depositing: on Balances, an asset you haven't opened reads Not set up and has a Set up button. Do this when someone wants to pay you in an asset you don't hold yet, since a sender needs your account to exist.

In code

From a terminal: hush deposit --asset usdc --amount 500, then hush apply --asset usdc. See the CLI.

A deposit is api.buildDeposit followed by buildApply, after buildSetup on a new account. See the SDK's actions and the API's buildDeposit.