Send

Send

Pay another Hush account an amount the chain stores as a ciphertext.

A send moves hSOL or hUSDC from your Hush account to someone else's. The chain records the two accounts and the amount as ciphertexts. You and the recipient can each decrypt the amount. Hush charges no fee for a send.

Before you start

You need an available balance that covers the amount. If what you hold is still pending, apply it. The recipient needs a Hush account for the same asset, because the amount is encrypted to the public key on that account.

In the app

  1. Open Send

    Connect and unlock, then open Send.

  2. Enter the recipient and the amount

    Paste the recipient's wallet address under To. The app looks up their Hush account for the asset. If they have none, it says the wallet hasn't opened Hush for that asset yet, and you ask them to open Hush and set it up.

  3. Press Send

    Your browser builds the 3 proofs of a send: equality, ciphertext validity, range. Then your wallet asks you to approve.

  4. Let it run

    The screen follows the steps: the proof transactions put the proofs on chain, and the transfer moves the encrypted amount to the recipient's pending balance.

  5. Done

    The amount is in their pending balance. The Receipt button opens the transfer as you read it and as the chain shows it.

Sending 120.00 USDC from an available balance of 500.00 leaves you 380.00 available, and the recipient has 120.00 pending.

When you are the recipient

An incoming send arrives in your pending balance without any action from you, whether or not the app is open. Open the app, unlock, and the credit is there with its amount. Press Apply to make it available. Hush accounts explains why credits wait in pending.

The receipt

Each send and each incoming payment is listed in your activity. Opening one shows its receipt at /app/receipt/<signature>: amount, fee, from, to, asset, time and status, in two columns. Your column has the amount decrypted, and the explorer's column has the ciphertext. Both parties to a transfer can open its receipt, each with their own key.

What happened on chain

StepWhat the chain records
Proofs3 proofs verified by the ZK ElGamal Proof program, with their results held in context-state accounts
TransferYour Hush account, the recipient's Hush account, the mint, and the amount as ciphertexts
CloseThe context-state accounts closed

Your available balance and the recipient's pending balance are both ciphertexts before and after. Proofs says what each proof shows.

In code

From a terminal: hush send --asset usdc --amount 120 --to <wallet>. See the CLI.

A send is buildSend with the recipient's wallet address and the amount in base units. It throws with the code RECIPIENT_NOT_SET_UP when the recipient has no Hush account for the asset. See the SDK's actions.