Transactions

Private Transactions

RAILGUN enables encrypted private transactions through Shielding. Once assets are shielded into the RAILGUN contract, there are several options:

  1. Transfer tokens privately to another RAILGUN wallet.

  2. Use a cross-contract call to interact privately with an external smart contract.

  3. Unshield tokens into any public wallet.

These transactions achieve a level of privacy, as their contents cannot be read by an external observer. For example, private transfers show no details of the tokens or amounts sent in Etherscan.

Relayers

In order to achieve full anonymity, RAILGUN uses a network of Relayers to submit transactions.

Relayers are external wallets that sign transactions on a user's behalf. Relayers pay gas fees for users, and they receive ERC-20 tokens as fees for the service.

If you want to send transactions through a Relayer, use @railgun-community/waku-relayer-client.

Last updated