aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Type Alias ApiPerpetualsDeallocateCollateralBody

    ApiPerpetualsDeallocateCollateralBody: {
        deallocateAmount: Balance;
        marketId: PerpetualsMarketId;
        sponsor?: PerpetualsSponsorConfig;
        txKind?: SerializedTransaction;
        walletAddress?: SuiAddress;
    } & (
        | { accountCapId?: ObjectId; accountId: PerpetualsAccountId }
        | { vaultId: ObjectId }
    )

    Request body for deallocating collateral from a given market (account/vault).

    Type Declaration

    • deallocateAmount: Balance

      Collateral amount to deallocate from the position.

    • marketId: PerpetualsMarketId

      Market ID associated with the request.

    • Optionalsponsor?: PerpetualsSponsorConfig

      Optional transaction sponsorship configuration.

    • OptionaltxKind?: SerializedTransaction

      Serialized transaction kind sent to the service.

    • OptionalwalletAddress?: SuiAddress

      Caller wallet. For vault-backed accounts, when the caller is a vault assistant (rather than the vault owner), the backend uses this to resolve the correct assistant cap.