Skip to main content

Send

Send to Ethereum

How does it work?

You transfer an asset (e.g. 10 USDC) from your private account to a contract on Aztec, which authorizes the release of the equal amount of asset on a contract on Ethereum. For your convenience (and privacy), Nyx relayers initiate the Ethereum transaction to send the released asset to the recipient.

How private is it?

When you send to an Ethereum address, the asset type, amount, and the recipient’s Ethereum address is public. However, there is no link to your private account. In short, no one will know anything about your private account balance or activity (including us).

How to enhance your privacy

When you send assets out of your private account, consider sending them to one or more different Ethereum addresses you control (a fresh wallet, your exchange account, etc). This way the assets are not tied to the history of your connected account, or any connection someone has made between your connected account and your identity. Also, if you fund your private account with, for example, 0.123456789 ETH and then immediately send the exact same 0.123456789 ETH or WETH to another Ethereum address from your private account, external parties may suspect a connection between the two Ethereum accounts due to the asset type and amount matching and the timing lining up closely. So, consider breaking up your sends into smaller amounts spaced out in time.

Transaction examples

Step 1. Aztec transaction to move assets to Ethereum There is an initial Aztec transaction involving the transfer of private state which has no publicly-visible sender information. The asset type and amount are visible onchain because the Nyx smart contract for the asset type is involved, and the recipient address is visible because this data point needs to be sent to Ethereum for the transfer to occur. The Nyx Token Bridge contract for the asset is visible in the “Public Calls” section of the explorer page for the transaction as well, which is the Nyx smart contract that facilitates the sending of the asset to Ethereum. So, what can be seen is that an unknown Nyx user initiated a send to the given Ethereum address for that token type and amount.

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

Step 2. Ethereum transaction to send assets to recipient Next, on Ethereum, the recipient will receive the assets publicly with a transaction that shows a Nyx relayer as the sender. If someone matched the two transactions based on asset type, amount, and timing, they would not know which private account was involved, let alone which Ethereum account funded that private account to begin with.

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

Diagram

This flow is the same whether the recipient is your connected account address or another Ethereum address.


Private send on Aztec

How does it work?

You transfer ownership of a private asset (e.g. 10 USDC) to another user. Only you and the recipient can see the details of what happened, no one else. Learn more below.
Only send assets to other Nyx users. Wallets and other apps on Aztec may not currently support Nyx assets. This will change after alpha, but avoid this for now so you don’t lose assets.

How private is it?

Neither asset type, amount, sender, nor receiver are publicly visible in the onchain send transaction. Only the sender and recipient know these transaction details. However, the first time you receive assets from another Nyx user, there is an onchain record that an unknown address set up the capability to send you assets. The specifics remain unknown: how many times they’ve sent you assets and what the asset types and amounts were. So, if someone knows your address, they can know the count of the number of unique addresses that have initiated a transfer of assets to you at least once using the non-interactive handshake strategy. Again, they cannot see which addresses did this. (Learn more).

Transaction example

There is no sender, recipient, asset type, or asset amount information shown publicly as you can see with this example transaction:

Explorer link. The associated private account sender address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

Diagram

To learn more about how private state works on Aztec see this Aztec Labs doc.


Receive

Receive on Aztec

How does it work?

To receive assets on Aztec, just click on your private account address to copy it. Then, give it to the person or app sending you assets. This is safe because sharing your private address does not reveal your balance or transaction history. Only a (possibly partial) count of the number of unique addresses that have initiated a transfer of assets to you at least once is revealed. Learn more.
You can only accept Nyx-supported assets:
  • If you’re receiving from another Nyx user, you have nothing to worry about.
  • If you’re receiving from a user of a different wallet/app: be careful. Two assets with the same name - e.g. USDC - may not actually be the same asset. Make sure the contract address of the asset they are planning to send matches the contract address of one of our supported assets.

How private is it?

Neither asset type, amount, sender, nor receiver are publicly visible in the onchain send transaction. Only the sender and recipient know these transaction details. However, the first time you receive assets from another Nyx user, there is an onchain record that an unknown address set up the capability to send you assets. The specifics remain unknown: how many times they’ve sent you assets and what the asset types and amounts were. So, if someone knows your address, they can know the count of the number of unique addresses that have initiated a transfer of assets to you at least once using the non-interactive handshake strategy. Again, they cannot see which addresses did this. (Learn more).

Receive from Ethereum

You receive from Ethereum into your private account through one of your receiver addresses (Ethereum smart contract addresses you control). When a minimum amount of a supported asset (ETH, WETH, USDC, or UDST) is sent to one of your receiver addresses, a Nyx relayer will initiate a transfer of the asset to your private account. This is assuming the receiver address has room within its deposit cap for the asset. Once a transfer is made and your asset is on Aztec, you’ll claim it into your private account.
Only send USDC, USDT, ETH, or WETH. If a different asset is sent there, it will be stuck as there is no capability to send it out.

Common use cases

Common uses include:
  • You are the sender
    • Send to your private account from a dapp, exchange, wallet, or other location as a convenient way to avoid moving the funds through your connected account.
  • Someone else is the sender
    • A friend who doesn’t have a Nyx account can send assets to your Nyx account.
    • An employer can pay you on Ethereum and the funds end up in your private account.

How private is it?

When you send an asset to a receiver address, the asset type, amount, and the sender address are publicly visible on Ethereum. However, no one can see where the asset goes (your private account). No one can link your receiver addresses to your private account. Not even us. Each of your receiver addresses is tied to its own, unique secret code that lives in your private account’s private state (which only you can read). When you create a receiver address, you authorize a private account transaction that writes an encoded message to Aztec with a hash of this code. A Nyx relayer sees the message and deploys a receiver account on Ethereum with the secret hash written to its account contract. All we and anyone else know is that some unknown Nyx account own the secret that controls this receiver addresses’s operations. This process ensures that only the owner of the unhashed secret can accept funds that transfer from this receiver address to Aztec. Also, only the owner of the unhashed secret can authorize sending out funds from the address. This is because receiver address related operations require transactions that prove ownership of the secret: creating one, sending an asset out from one, and accepting an asset forwarded to Aztec from one.

How to enhance your privacy

When you send an asset to a receiver address, a third-party can see that the recipient is a Nyx receiver address but will not know which private account it belongs to. When you share a receiver address with someone, they can see the history of who else has sent to it and how much. So, do not share the same receiver address with two people/apps/etc that you do not want to know each other’s history. Also, consider using an address without links to your connected account so as not to link their actions.

Transaction examples

Step 1: A supported asset is sent to your receiver address on Ethereum To initiate a transfer, a supported asset must be sent to one of your receiver addresses. It must be above the transfer threshold and you must have space within your deposit cap (learn more). Step 2: Ethereum relayer transaction to transfer funds to your private account There is an initial Ethereum transaction where a Nyx relayer calls your receiver address’s smart contract to move the asset to the associated Nyx asset portal smart contract (to initiate the transfer to your private account on Aztec). The Ethereum address of the relayer and receiver address will be publicly visible, as well as the asset type and amount. To keep your private account private, its address is not included in the transaction. Therefore, there is no public link between your receiver address and your private account. As a result, no one can see what assets your private account is being sent - only that some private account is being sent the assets - and so cannot infer your private balance.

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

Step 3: Aztec transaction to claim the transferred asset Finally, you claim the asset into your private account with a claim transaction on Aztec. All that is visible onchain is the asset type and amount, not which private account was involved. You can see a claim transaction example and learn more about claiming here. The specific claim transaction that goes with the transaction above is this one.

Diagram

As with all transfers from Ethereum to your private account, there is no public link between your private account and anything that happens on Ethereum.

Receiver addresses in detail

Creating a receiver address

You create them by clicking “Create receiver address” in the Nyx app. There is a private account transaction to create one, so you will sign an approval message with your connected account. We will then deploy your new receiver address on Ethereum (with no link to you) and have our relayers start monitoring it so that transfers from it initiate automatically when transfer threshold and cap conditions are met. This process typically takes around 30-40 minutes, after which we’ll show the receiver address’s address in the app. At that point you can start using it.
You cannot delete a receiver address. If you want to stop using one, it’s your responsibility to make sure that all people and apps that were using it to send you funds no longer do so.
Step 1: Aztec transaction to initiate the creationEach of your receiver addresses is tied to its own, unique secret code that lives in your private account’s private state (which only you can read). When you create a receiver address, you authorize a private account transaction that writes an encoded message to Aztec with a hash of this code.

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

Step 2: Ethereum transaction to create the receiver addressThen, a Nyx relayer sees the message and deploys a receiver account on Ethereum with the secret hash written to its account contract. All we and anyone else know is that some unknown Nyx account own the secret that controls this receiver addresses’s operations.

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

No one will know that the receiver address is tied to your private account. Not even us.

Deposit cap and transfer threshold rules

We have deposit caps of 100 USDC, 100 USDT, and 0.05 ETH (ETH and WETH combined) per receiver address. We also have minimum balances required for a Nyx relayer to transfer an asset into your private account from a receiver address (5 USDC, 5 USDT, and 0.003 for ETH and WETH). The table below covers example scenarios to help you better understand cap and threshold rules. Cap and threshold example scenarios Examples are shown for USDC, but the same rules apply to USDT and ETH/WETH

Sending an asset out from a receiver address

If too much of an asset is sent to a receiver address (more than you can deposit with your deposit cap) you can send the remaining balance out from the receiver address to another Ethereum address. The send of the asset will be public on Ethereum, but there will be no link to your private account.
You can only send out USDC, USDT, ETH, and WETH. You cannot send out other assets, so do not send them to your receiver addresses or ask someone else to as they will be stuck there!
You initiate a send out by viewing the receiver address in the Nyx app and clicking “Send out” for the asset you want to send. A receiver address can only do one action at at time. If an asset it being transferred to your private account from a receiver address, or that address is already sending out another asset, you will need to wait until that is finished. See all the restrictions below.

Click the three dots in an asset's row to reveal the 'Send out' button

Step 1: Aztec transaction to initiate the send out an assetEach of your receiver addresses is tied to its own, unique secret code that lives in your private account’s private state (which only you can read). When you send out funds from a receiver address, you authorize a private account transaction that writes an encoded message to Aztec with a hash of this code (along with the asset type, amount, and recipient).

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

Step 2: Ethereum transaction to send out the assetThen, a Nyx relayer sees the message and initiates the send out of the asset from your receiver address on your behalf. The receiver address’s contract attempts to decode the encoded message, and only accepts valid messages from the owner of the unhashed secret that controls the address (so, no one can send out your assets but you).

Explorer link. The associated private account address - 0x2fcf3b24e8ca9af27be751c3033a902e0efd7af1a55f0ee4045f75ea835de500 on the Aztec blockchain - is not revealed.

You can send to any Ethereum address.

Send out restrictions

Send out is restricted in the following cases:
  1. When a transfer of funds from a receiver address into your private account is about to happen, is in progress, or is waiting to be claimed. You must wait until the transfer is complete and claim the funds first. Then, you can send out any remaining funds.
  2. When a receiver address holds an unsupported asset. Send out only works for USDC, USDT, ETH, and WETH.
  3. Insufficient balance error: If you try to send out more of an asset than you have in your receiver address, you will get an insufficient balance error when the send is attempted on Ethereum (see image below). Our UI tries to prevent you from sending out more than you have, but if you close a send out transaction modal after signing and initiate a new send out, those two could add up to more than you have.

This error goes away after 24 hours. It also goes away if you send enough funds to your receiver address to allow the send out to occur (but note that a transfer of funds from your receiver address may occur first if there is room under your deposit cap).