HomeDocumentationAPI Reference
Log In
API Reference

Create Subaccount and Deposit

This is the preferred / no-code method for integrating with the Derive exchange.

You may use the user interface to:

  • Bridge from Mainnet / OP / Arbitrum / Base
  • Deposit / withdraw funds into / from the exchange
  • Transfer funds between subaccounts
  • Create several subaccounts with different margin types
  • Monitor and manage positions / open orders via UX
  • Manage session keys

If you'd like to complete these steps fully on-chain refer to Onboard Manually.

Step 1: Connect Wallet

Load the www.derive.xyz website and follow the "connect'' wallet flow:

You may use "Metamask" if you'd like to onboard via a hardware wallet.

Step 2: Deposit

Click on the "Deposit" button at the top right of the page. This should open the deposit dialog.

When you make your first deposit to Derive, a Standard Margin subaccount is created automatically.

Refer to the other guides in Onboard via Interface section for other actions.

Smart-contract Wallets

When onboarding via the UX, Derive creates a smart-contract wallet wrapper around your original Ethereum Wallet. Your wallet still has full control over all actions, however the all funds are owned by the smart contract wallet.

This means when you view transactions on the explorer, transfers / fills / deposits will all appear to happen to this Smart-contract wallet address.

On the Developers page, you can see:

  • Wallet: Your smart contract wallet on Derive's L2, controlled by your signer.
  • Signer: Your signer wallet that controls your Derive wallet.