• This instruction closes the retail trader's data account.

    When retail traders wish to close their account, and regain the lamports used to allocate the space for their data account, they can call this instruction. Retail traders may not close their account if they have open orders, and must wait for the orders to be filled, or cancel them.

    Returns

    This function returns an instruction to include in the transaction.

    Returns Promise<Transaction>

Generated using TypeDoc