Skip to content

Deposits

Creating a Deposit

typescript
const { commitment, note, leafIndex } = await offshore.deposit({
  amount: '1.0',
  token: 'ETH',
  signer: walletSigner,
});

// note format: offshore-eth-1.0-0x{secret}

Using Deposit Addresses

For enhanced privacy, create a one-time deposit address:

typescript
const depositAddress = await offshore.createDepositAddress({
  commitment,
  token: 'ETH',
  amount: '1.0',
});

// Send ETH to this address from any wallet

Open source privacy technology