For the complete documentation index, see llms.txt. This page is also available as Markdown.

Multi-signature and smart wallets

Smart-contract wallets and multisigs (e.g. Safe) can't produce ECDSA personal_sign signatures, so any step that needs your Ethereum private key works differently. Most features are still available:

Action
EOA wallet
Smart wallet / multisig

Deposit

✅

✅ (contract call)

Register API key

personal_sign

On-chain changePubKey (priority transaction)

Trade with API key

✅

✅

Secure withdrawal

✅

✅ – the only way to withdraw funds off Lighter

Transfer to another owner

✅

❌

Fast withdrawal

✅

❌

Registering an API key

In the front-end, you can still sign in by registering your API key with a priority transaction. To do this, make sure to tick the box shown in the authentication modal. Under the hood, you're calling changePubKey() via Lighter's mainnet contract.

Through the API:

  1. Generate a keypair (GenerateAPIKey in the WASM signer, or the SDKs).

  2. From the multisig, call changePubKey on the Lighter contract with the account index, API key index and public key. You can also use the Ethereum gateway.

  3. Once the priority transaction is processed, the key works like any other.

Priority transactions support API-key changes (changePubKey), deposits (deposit and depositBatch), order cancellation (cancelAllOrders), reduce-only IOC orders (createOrder), and secure withdrawals (withdraw). They do not provide a method for transferring funds to another Lighter account owner. See Priority Transactions for the supported contract operations, including claiming pending withdrawals.

The transferERC20 and transferETH ABI methods are internal helpers: both require msg.sender == address(this), so a multisig cannot call them directly. They do not replace an L2 transfer to another Lighter account owner, which requires the controller's ECDSA signature.

Last updated

Was this helpful?