withdraw_from_lighter

Documentation for eth_defi.lighter.api.withdraw_from_lighter function.

async withdraw_from_lighter(lighter, account_index, api_private_key, api_key_index, withdraw_usdc)

Request a secure USDC withdrawal from Lighter.

Parameters
  • lighter (Any) – Imported Lighter SDK module.

  • account_index (int) – Lighter account index.

  • api_private_key (str) – SDK API private key.

  • api_key_index (int) – Lighter API-key slot.

  • withdraw_usdc (decimal.Decimal) – Human-readable USDC withdrawal amount.

Return type

None